API REFERENCE

treeLabelField

Display label field in a parent-ID tree. Defaults to the ID when omitted.

What does this API do?

Display label field in a parent-ID tree. Defaults to the ID when omitted.

API for Pro features: Tree data

Exact input and result types

typescript
treeLabelField: string
ItemValue
JavaScript nametreeLabelField
HTML attributetree-label-field
Defaultundefined
Input typestring

Usage flow

Set this on a property of the Grid element. In HTML, you can also use the tree-label-field attribute. Pass arrays, objects, and callbacks through JavaScript, and use new arrays or objects when applying changes.

Feature explanations and examples