ITreeViewDataItem
@spartanfx/react / index / ITreeViewDataItem
Interface: ITreeViewDataItem
Normalized item produced by the TreeView data adapters. Pair it with the
schema the adapter returns: parentId is populated in 'parentId' mode,
path in 'path' mode.
Properties
Required
| Property | Type | Description |
|---|---|---|
id | string | Unique identifier (stringified). |
label | string | Display label. |
Options
| Property | Type | Description |
|---|---|---|
parentId? | string | Direct ancestor id, or null for a root node ('parentId' mode). |
path? | string | Full hierarchical path, e.g. "/Docs/Reports/Q1.pdf" ('path' mode). |