UNPKG

jqwidgets-framework

Version:

jQWidgets is an advanced Angular, Vue, Blazor, React, Web Components, jquery, ASP .NET MVC, Custom Elements and HTML5 UI framework.

22 lines (17 loc) 611 B
import { Component, ViewChild, ViewEncapsulation } from '@angular/core'; import { jqxScrollViewComponent } from 'jqwidgets-ng/jqxscrollview'; @Component({ selector: 'app-root', templateUrl: './app.component.html', styleUrls: ['./app.component.css'], encapsulation: ViewEncapsulation.None }) export class AppComponent { @ViewChild('myScrollView', { static: false }) myScrollView: jqxScrollViewComponent; onStartClicked(): void { this.myScrollView.slideShow(true); }; onStopClicked(): void { this.myScrollView.slideShow(false); }; }