React hooks TreeTable expandedkeys
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.
-
- Information
-
Who is online
Users browsing this forum: No registered users and 17 guests