jqwidgets-framework
Version:
jQWidgets is an advanced Angular, Vue, Blazor, React, Web Components, jquery, ASP .NET MVC, Custom Elements and HTML5 UI framework.
30 lines (23 loc) • 922 B
text/typescript
import { Component, ViewChild, AfterViewInit } from '@angular/core';
import { jqxPanelComponent } from 'jqwidgets-ng/jqxpanel';
({
selector: 'app-root',
templateUrl: './app.component.html'
})
export class AppComponent implements AfterViewInit {
('myPanel', { static: false }) myPanel: jqxPanelComponent;
ngAfterViewInit(): void {
this.myPanel.elementRef.nativeElement.firstChild.style.border = 'none';
}
onValueChanged(event: any): void {
this.myPanel.clearcontent();
let date = event.args.date;
this.myPanel.prepend('<div style="margin-top: 5px;">New Value: ' + date + '</div>');
}
onOpen(): void {
this.myPanel.prepend('<div style="margin-top: 5px;">Popup Opened</div>');
}
onClose(): void {
this.myPanel.prepend('<div style="margin-top: 5px;">Popup Closed</div>');
}
}