TreeListBase.NodeStyle

Syntax

NodeStyle: PP.Style;

Description

The NodeStyle property determines style of the specified node.

Comments

Use the setNodeStyle(nodeKey, value) method to set the property value, and the getNodeStyle(nodeKey) method to get the property value.

Parameters:

nodeKey. String. Node identifier

value. PP.Style. Value.

Example

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

// Set style
Tree.setNodeStyle(1, "border: 1px dotted lightgray; border-radius: 2px");

After executing the example the style is applied to the node with the 1 key.

See also:

TreeListBase