UNPKG

jqwidgets-framework

Version:

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

18 lines (13 loc) 623 B
import { Component, ViewChild, AfterViewInit } from '@angular/core'; import { jqxDropDownButtonComponent } from 'jqwidgets-ng/jqxdropdownbutton'; @Component({ selector: 'app-root', templateUrl: './app.component.html' }) export class AppComponent implements AfterViewInit { @ViewChild('myDropDownButton', { static: false }) myDropDownButton: jqxDropDownButtonComponent; ngAfterViewInit(): void { let dropDownContent = '<div style="position: relative; margin-left: 3px; margin-top: 5px;">DropDownButton</div>'; this.myDropDownButton.setContent(dropDownContent); } }