Namespace: PP;
TreeModel
The TreeModel class implements data model in hierarchical charts.
The TreeModel class is using by the components BubbleTree and TreeMap.
PP.initClass(PP.TreeModel, PP.Object, "PP.TreeModel");
| Constructor name | Brief description | |
| TreeModel | The TreeModel constructor creates an instance of the TreeModel class. |
| Property name | Brief description | |
| ActiveItem | The ActiveItem property determines an active element of chart data model. | |
| RootItem | The RootItem property determines a root element of the chart data model. |
| Method name | Overview | |
| buildIndex | The buildIndex method refreshes indexes of data model elements. | |
| getItem | The getItem method returns data model element by its index. | |
| goToParent | The goToParent method replaces the currently active element with its parent. |
| Event name | Brief description | |
| ActiveItemChanged | The ActiveItemChanged event occurs after active chart element is changed. |
| 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: