SelectionChanged: function(sender, args);
sender. Event source.
args. Event information:
Type. PP.Ui.TreeListSelectionMode. Selection type
Value. Boolean. Selection state.
Node. String. Node key.
Changed. {String: Boolean}. Object of the type {node key: selection state}.
The SelectionChanged event occurs after changing selection.
Executing the example requires the SimpleTreeList component with the Tree identifier (see Example of Creating the SimpleTreeList Component).
// Set event Tree.SelectionChanged.add( function(sender, args) { console.log("SelectionChanged event:"); console.log(args); }); // Initialize event Tree.setNodeSelected(0, true);
After executing the example the SelectionChanged event is added.
See also: