Skip to main content

ITreeViewDataItem

@spartanfx/react v1.2.2


@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

PropertyTypeDescription
idstringUnique identifier (stringified).
labelstringDisplay label.

Options

PropertyTypeDescription
parentId?stringDirect ancestor id, or null for a root node ('parentId' mode).
path?stringFull hierarchical path, e.g. "/Docs/Reports/Q1.pdf" ('path' mode).