SelectionChanging: function(sender, args);
sender. Event source.
args. Event information:
Type. PP.Ui.TreeListSelectionMode. Selection type
Value. Boolean. Selection state
Node. String. Node key.
Cancel. Boolean. If this property is set to true in the event handler, selection is not changed.
The SelectionChanging event occurs before changing selection.
Executing the example requires the SimpleTreeList component with the Tree identifier (see Example of Creating the SimpleTreeList Component).
// Set event Tree.SelectionChanging.add( function(sender, args) { console.log("SelectionChanging event:"); console.log(args); }); // Initialize event Tree.setNodeSelected(0, true);
After executing the example the SelectionChanging event is added.
See also: