API REFERENCE
treeIdField
Node ID field in a parent-ID tree. Configure together with treeParentField.
What does this API do?
Node ID field in a parent-ID tree. Configure together with treeParentField.
API for Pro features: Tree data
Exact input and result types
treeIdField: string| Item | Value |
|---|---|
| JavaScript name | treeIdField |
| HTML attribute | tree-id-field |
| Default | undefined |
| Input type | string |
Usage flow
Set this on a property of the Grid element. In HTML, you can also use the tree-id-field attribute. Pass arrays, objects, and callbacks through JavaScript, and use new arrays or objects when applying changes.
Feature explanations and examples
- Tree data
Trees display parent-child data, such as folders or organizations, with indentation and expansion controls. Unlike grouping equal values, the parent relationship already exists in the data.