UNPKG

jqwidgets-framework

Version:

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

19 lines (15 loc) 672 B
import { Component, ViewChild, ElementRef } from '@angular/core'; @Component({ selector: 'app-root', templateUrl: './app.component.html' }) export class AppComponent { @ViewChild('HorizontalDiv', { static: false }) HorizontalDiv: ElementRef; @ViewChild('VerticalDiv', { static: false }) 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) + ')'; }; }