Assign selected tree node to a variable

James Rivera shared this question 6 years ago
Answered

When the user selects a tree node, I would like to assign the label to a variable... is this possible

Comments (3)

photo
1

It is. Create an onClick event for each node that sets the value of a variable and write by hand the node's name as the value for the variable.

photo
1

So there is no way to automatically assign the label to the variable?

photo
1

Nope