TreeModelSource Class
Beta
Controls tree model and visible tree nodes. It is used to modify model and inform when tree model changes.
Methods
| Name | Description | |
|---|---|---|
| constructor(): TreeModelSource | ||
| getModel(): TreeModel | Returns tree model. | |
| getVisibleNodes(): VisibleTreeNodes | Computes and returns flat list of visible tree nodes. | |
| modifyModel(callback: (model: MutableTreeModel) => void): void | Modifies tree model using provided callback. |
Properties
| Name | Type | Description | |
|---|---|---|---|
| onModelChanged | BeUiEvent<TreeModel> | Event that is emitted every time tree model is changed. |
Defined in
Last Updated: 08 January, 2020