TreeNodes

Namespace: PP.Ui;

Inheritance hierarchy

Object

TreeNodes

Description

The TreeNodes class implements API of the TreeList node collection.

Syntax

PP.initClass(PP.Ui.TreeNodes, PP.Object, "TreeNodes");

Properties

  Method name Brief description
Filter The Filter property determines the text by which the nodes will be filtered.
FilterColumn The FilterColumn property determines index of the column, data of which are used to filter nodes in hierarchical tree.
FilterMethod The FilterMethod property determines custom function for hierarchical tree nodes filtering.
FilterValue The FilterValue property determines the value for filtering nodes in a hierarchical tree.
Sort The Sort property determines sorting method for the selected column.

Methods

  Method name Brief description
clear The clear method removes all nodes from the collection.
deleteNode The deleteNode method deletes a tree node.
getCount The getCount method returns the number of children for the specified node.
getItem The getItem method returns node by its index.
getItemByKey The getItemByKey method returns a node by its key.
getItemKey The getItemKey method returns node key by index.
getItemValue The getItemValue method returns property value of nodes by index.
insertNode The insertNode method inserts a node into the tree.
loadFrom

The loadFrom method inserts an array of tree items to node and deletes all node children that existed before this operation.

setChildProps The setChildProps method sets properties to nodes and if necessary to all child elements.
updateFrom

The updateFrom method inserts an array of tree items to the node deleting all children of the node. It reserves items' state (that is, properties set for these items), initializing them by the key.

Properties inherited from the class Object

  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.

Methods inherited from the class Object

  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:

PP.Ui