Namespace: PP.Ui;
TreeNode
The TreeNode class implements an element in the collection of the TreeList component nodes.
PP.initClass(PP.Ui.TreeNode, PP.Object, "TreeNode");
| Constructor name | Brief description | |
| TreeNode | The TreeNode constructor creates an instance of the TreeNode class. |
| Property name | Brief description | |
| CanSelect | The CanSelect property determines whether the node is selectable. | |
| Checked | The Checked property determines whether the node checkbox is marked. | |
| ChildrenCount | The ChildrenCount property determines a number of the tree node children. | |
| Class | The Class property determines tree node css-class. | |
| Color | The Color property determines tree node color. | |
| ColumnText | The ColumnText property sets contents of node for a specified column. | |
| Data | The Data property determines tree node data. | |
| Draggable | The Draggable property determines whether the node can be dragged. | |
| Expanded | The Expanded property determines whether node children are displayed. | |
| Focused | The Focused property determines whether the tree node has a focus. | |
| Font | The Font property determines font parameters of the tree node. | |
| HasChild | The HasChild property determines whether tree node has any child element. | |
| HasChildSelected | The HasChildSelected property determines whether tree node has any selected child element. | |
| Highlighted | The Highlighted property determines whether to use a tooltip for the specified node. | |
| ImageIndex | The ImageIndex property determines an index of the item placed in component ImageList. | |
| ImageUrl | The ImageUrl property determines the path to the tree node icon. | |
| Key | The Key property determines node key. | |
| ResourceKey | The ResourceKey property determines resource key for tree node. | |
| Selected | The Selected property determines whether the node is selected. | |
| Text | The Text property determines name for a tree node. | |
| ToolTip | The ToolTip property determines text of the tree node tooltip. | |
| Value | The Value property determines tree node value. | |
| Visible | The Visible property determines whether the tree node is visible. |
| Method name | Brief description | |
| addClass | The addClass method adds css-class to the node. | |
| collapse | The collapse method collapses node children. | |
| collapseAll | The collapseAll method hides a list of the node child elements. | |
| deSelectChild | The deSelectChild method deselects all child elements of the node. | |
| expand | The expand method expands the node children menu. | |
| expandAll | The expandAll method expands the node children menu. | |
| getDomNode | The getDomNode method returns the main DOM node of the node. | |
| getIndex | The getIndex method returns tree node index. | |
| getLevel | The getLevel method returns the level number where the node is in the tree. | |
| getNodes | The getNodes method returns object of the PP.Ui.TreeNodes class containing node children. | |
| getParentNode | The getParentNode method returns the parent node. | |
| getRealHeight | The getRealHeight method returns real height of tree node. | |
| getVisualPosition | The getVisualPosition method returns a number of the node position in the list of visible elements. | |
| isLast | The isLast method determines whether the node is the last in its branch. | |
| isVisible | The isVisible method determines whether the node is visible. | |
| load | The load method loads a node. | |
| removeClass | The removeClass method removes css-class from a node. | |
| selectAll | The selectAll method selects all the node children. | |
| selectChild | The selectChild method selects all child elements of the node. | |
| setFocused | The setFocused method sets focus for the node. | |
| toggle | The toggle method collapses and expands the list of node children. |
| Property name | Brief description | |
| Data | The Data property associates a random object with this component. | |
| Id | The Id property sets component identifier. | |
| Settings | The Settings property sets the component parameters. |
| Method name | Brief description | |
| clone | The clone method creates a copy of object. It is not implemented in PP.Ui.Control. | |
| dispose | The dispose method deletes the component. | |
| getTypeName | The getTypeName method returns the name of the object type without the namespace, to which it belongs. |
See also: