React TreeList Node
A TreeList node's structure.
import { TreeListTypes } from "devextreme-react/tree-list"
Type:
TreeListTypes.Node
You can access nodes using the getRootNode() method and within some event handlers, for example, onNodesInitialized.
key
The node's key.
Type:
any
Keys are provided by the key field of the store that underlies the dataSource. Alternatively, you can set the UI component's keyExpr property. With hierarchical data, keys can be generated automatically if key and keyExpr are not set.
level
The node's hierarchical level.
Type:
The level of the root node is -1. This node is not visualized and is used to access the full hierarchy of nodes. The root node's children have level 0, the children's children have level 1, and so forth.
Feel free to share topic-related thoughts here.
If you have technical questions, please create a support ticket in the DevExpress Support Center.
Thank you for the feedback!
If you have technical questions, please create a support ticket in the DevExpress Support Center.