Page 1 of 1

Tree Component Click Any Node Manually, Not Selecting

Posted: 21 Feb 2018, 10:17
by pinachi
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];