Closed soosemi closed 9 months ago
Hi! The most straight forward solution to your problem is to register a onFocusItem prop on the tree environment or tree, that will trigger whenever the user clicks on an item, and provides the clicked item, as argument: https://rct.lukasbach.com/docs/api/interfaces/TreeEnvironmentConfiguration#onfocusitem
You can also use custom render hooks or custom interaction providers to register custom click events, see the respective docs pages for that.
If you want to carry additional information in your items, you should use the "data" field. It doesn't have to be a string, you can store any data you want in it.
Hi, i want to print this tree node inside contents in console when i clicked node... i cant find any resolution.. and one more, can i add data like 'connInf', and use another side?