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