React hooks TreeTable expandedkeys

UI Components for React
Post Reply
Posts: 1
Joined: 10 Mar 2020, 10:26

10 Mar 2020, 10:36

I have recently started using PrimeReact TreeTable with React hooks. I wanted to expand some nodes programmatically. For that I used expandedKeys property of TreeTable as explained in documentation. Say I used an object for expandedKeys as {1: true, 2: true}, where 1 and 2 are two keys of two nodes. After rendering the nodes corresponding to the keys 1 and 2, those were still in collapsed condition. I did not find any way to expand the nodes programmatically.

Post Reply

Return to “PrimeReact”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest