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