jqwidgets-framework
Version:
jQWidgets is an advanced Angular, Vue, Blazor, React, Web Components, jquery, ASP .NET MVC, Custom Elements and HTML5 UI framework.
32 lines (26 loc) • 843 B
text/typescript
import { Component, ViewChild, ViewEncapsulation } from '@angular/core';
import { jqxRibbonComponent } from 'jqwidgets-ng/jqxribbon';
({
selector: 'app-root',
styleUrls: ['./app.component.css'],
templateUrl: './app.component.html',
encapsulation: ViewEncapsulation.None
})
export class AppComponent {
('jqxRibbon', { static: false }) jqxRibbon: jqxRibbonComponent;
checkedNear(event: any): void {
if (this.jqxRibbon) {
this.jqxRibbon.scrollPosition('near');
}
}
checkedFar(event: any): void {
if (this.jqxRibbon) {
this.jqxRibbon.scrollPosition('far');
}
}
checkedBoth(event: any): void {
if (this.jqxRibbon) {
this.jqxRibbon.scrollPosition('both');
}
}
}