FocusChanging: function(sender, args);
sender. Event source.
args. Event information:
Node. String. Key of the node, which gets focused.
OldNode. Number. Key of the node, which was focused before.
Cancel. Boolean. If this property is set to true in the event handler, focus is not changed.
The FocusChanging event occurs before changing focus.
Executing the example requires the SimpleTreeList component with the Tree identifier (see Example of Creating the SimpleTreeList Component).
// Set event Tree.FocusChanging.add( function(sender, args) { console.log("FocusChanging event:"); console.log(args); }); // Initialize event Tree.setNodeFocused(0, true);
After executing the example the FocusChanging event is added.
See also: