TreeListBase.SelectionChanged

Syntax

SelectionChanged: function(sender, args);

Parameters

sender. Event source.

args. Event information:

Description

The SelectionChanged event occurs after changing selection.

Example

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:

TreeListBase