TreeListBase.NodeFocused

Syntax

NodeFocused: Boolean;

Description

The NodeFocused property determines whether the specified node is focused.

Comments

Focus - border around the node moved with arrows of the mouse. The focused element is selected by pressing the SPACE key.

Use the setNodeFocused(nodeKey, value) method to set the property value, and the getNodeFocused(nodeKey) method to get the property value.

Parameters:

nodeKey. String. Node identifier

value. Boolean. Value.

Example

Executing the example requires the SimpleTreeList component with the Tree identifier (see Example of Creating the SimpleTreeList Component).

// Focus the first node
Tree.setNodeFocused(0, true);

After executing the example the first node is focused.

See also:

TreeListBase