UNPKG

jqwidgets-scripts-custom

Version:

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

19 lines (15 loc) 616 B
import { Component, ViewChild, ElementRef } from '@angular/core'; @Component({ selector: 'app-root', templateUrl: './app.component.html' }) export class AppComponent { @ViewChild('HorizontalDiv') HorizontalDiv: ElementRef; @ViewChild('VerticalDiv') VerticalDiv: ElementRef; onValueChangedVertical(event: any): void { this.VerticalDiv.nativeElement.innerHTML = 'Vertical (' + parseInt(event.currentValue) + ')'; }; onValueChangedHorizontal(event: any): void { this.HorizontalDiv.nativeElement.innerHTML = 'Horizontal (' + parseInt(event.currentValue) + ')'; }; }