Tree Component Click Any Node Manually, Not Selecting
Posted: 21 Feb 2018, 10:17
I want to click first node from TypeScript side and trig onNodeSelect event.
I success selection but not click trigger.
html:
<p-tree #expandingTree [value]="unitTree" ...
ts:
@ViewChild('expandingTree')
expandingTree: Tree;
...
this.expandingTree.selection = this.unitTree[0];
I success selection but not click trigger.
html:
<p-tree #expandingTree [value]="unitTree" ...
ts:
@ViewChild('expandingTree')
expandingTree: Tree;
...
this.expandingTree.selection = this.unitTree[0];