jqwidgets-scripts-custom
Version:
jQWidgets is an advanced jQuery, Angular 7, Vue, React, ASP .NET MVC, Custom Elements and HTML5 UI framework.
27 lines (22 loc) • 755 B
text/typescript
import { Component, ViewChild, AfterViewInit } from '@angular/core';
import { jqxMenuComponent } from 'jqwidgets-scripts/jqwidgets-ts/angular_jqxmenu';
import { jqxCheckBoxComponent } from 'jqwidgets-scripts/jqwidgets-ts/angular_jqxcheckbox';
export class AppComponent implements AfterViewInit {
jqxMenu: jqxMenuComponent;
myCheckBox: jqxCheckBoxComponent;
ngAfterViewInit() {
this.jqxMenu.minimize();
}
change(event: any): void {
if (this.myCheckBox.val()) {
this.jqxMenu.minimize();
}
else {
this.jqxMenu.restore();
}
};
}