UNPKG

jqwidgets-scripts-custom

Version:

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

25 lines (20 loc) 789 B
import { Component, ViewChild } from '@angular/core'; import { jqxTreeComponent } from 'jqwidgets-scripts/jqwidgets-ts/angular_jqxtree'; @Component({ selector: 'app-root', templateUrl: './app.component.html' }) export class AppComponent { @ViewChild('myTree') myTree: jqxTreeComponent; myTreeOnInitialized(): void { this.myTree.selectItem(document.getElementById('home')); let solutionsItem = document.getElementById('solutions'); this.myTree.expandItem(solutionsItem); this.myTree.checkItem(solutionsItem, true); this.myTree.uncheckItem(document.getElementById('manufacturing')); } myCheckBoxOnChange(event: any): void { let checked = event.args.checked; this.myTree.hasThreeStates(checked); }; }