jqwidgets-scripts-custom
Version:
jQWidgets is an advanced jQuery, Angular 7, Vue, React, ASP .NET MVC, Custom Elements and HTML5 UI framework.
29 lines (23 loc) • 982 B
text/typescript
import { Component, ViewChild, ViewEncapsulation } from '@angular/core';
import { jqxRibbonComponent } from 'jqwidgets-scripts/jqwidgets-ts/angular_jqxribbon';
export class AppComponent {
jqxRibbon: jqxRibbonComponent;
change(event: any): void {
let checked = event.args.checked;
let mode = checked ? "popup" : "default";
let width = checked ? 115 : 425;
this.jqxRibbon.setOptions({ width: width, mode: mode });
if (mode == "popup") {
this.jqxRibbon.setPopupLayout(0, "default", 310, '100%');
this.jqxRibbon.setPopupLayout(1, "default", 310, '100%');
this.jqxRibbon.setPopupLayout(2, "default", 310, '100%');
this.jqxRibbon.setPopupLayout(3, "default", 310, '100%');
}
}
}