NodeClass: String;
The NodeClass property determines CSS class of the specified node.
Use the setNodeClass(nodeKey, value) method to set the property value, and the getNodeClass(nodeKey) method to get the property value.
Parameters:
nodeKey. String. Node identifier
value. String. Value.
Executing the example requires the SimpleTreeList component with the Tree identifier (see Example of Creating the SimpleTreeList Component), the "test" CSS class must be declared on the page.
<style> .test { font-size: 120%; font-family: Verdana, Arial, Helvetica, sans-serif; color: #333366; } </style>
Determine node style:
// Determine CSS class of the node with the 0 index Tree.setNodeClass(0, "test");
After executing the example the "test" CSS class is assigned to the node with the 0 index.
<tr id="TLVNodeRow0" class="PPTLVNodeRow test PPTLVNodeCollapsed">
See also: