focusNode(nodeKey, fireEvents, ignoreRules);
nodeKey. String. Node key
fireEvents. Boolean. Generate change event (FocusChanged / FocusChanging). Optional parameter.
ignoreRules. Boolean. Ignore focusing rules (NodeFixedFocused).
The focuseNode method sets focus on the specified node.
Focus - border around the node moved with arrows of the mouse. The focused element is selected by pressing the SPACE key.
Executing the example requires the SimpleTreeList component with the Tree identifier (see Example of Creating the SimpleTreeList Component).
// Set focus to the node 4 Tree.focusNode("key3", false, true);
After executing the example the node 4 gets focused, focusing event is not initialized, focusing rules are ignored.
See also: