UNPKG

jqwidgets-scripts-custom

Version:

jQWidgets is an advanced jQuery, Angular 7, Vue, React, ASP .NET MVC, Custom Elements and HTML5 UI framework.

21 lines (16 loc) 602 B
import { Component, ViewChild } from '@angular/core'; import { jqxRangeSelectorComponent } from 'jqwidgets-scripts/jqwidgets-ts/angular_jqxrangeselector'; @Component({ selector: 'app-root', templateUrl: './app.component.html' }) export class AppComponent { @ViewChild('rangeSelectorReference') myRangeSelector: jqxRangeSelectorComponent; onClickGet(): void { let range = this.myRangeSelector.getRange(); alert("The selected range is from " + range.from + " to " + range.to); }; onClickSet(): void { this.myRangeSelector.setRange(30, 70); }; }