UNPKG

jqwidgets-framework

Version:

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

17 lines (13 loc) 529 B
import { Component, ViewChild, AfterViewInit } from '@angular/core'; import { jqxMenuComponent } from 'jqwidgets-ng/jqxmenu'; @Component({ selector: 'app-root', templateUrl: './app.component.html' }) export class AppComponent implements AfterViewInit { @ViewChild('myMenu', { static: false }) myMenu: jqxMenuComponent ngAfterViewInit(): void { this.myMenu.setItemOpenDirection('Services', 'left', 'up'); this.myMenu.setItemOpenDirection('ContactUs', 'left', 'down'); } }