Tree Component Click Any Node Manually, Not Selecting

UI Components for Angular
Post Reply
pinachi
Posts: 1
Joined: 21 Feb 2018, 10:13

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];

Post Reply

Return to “PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 21 guests