UNPKG

jqwidgets-scripts-custom

Version:

jQWidgets is an advanced jQuery, Angular 7, Vue, React, ASP .NET MVC, Custom Elements and HTML5 UI framework.

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