TreeDataSource
Defined in: ui/collection/tree-data-source.ts:9
Adapt any project model to a tree; mutations and persistence stay with the host.
Type Parameters
Section titled “Type Parameters”T
Methods
Section titled “Methods”getChildren()
Section titled “getChildren()”getChildren(
item): readonlyT[]
Defined in: ui/collection/tree-data-source.ts:11
Parameters
Section titled “Parameters”T
Returns
Section titled “Returns”readonly T[]
getId()
Section titled “getId()”getId(
item):TreeItemId
Defined in: ui/collection/tree-data-source.ts:12
Parameters
Section titled “Parameters”T
Returns
Section titled “Returns”getLabel()
Section titled “getLabel()”getLabel(
item):string
Defined in: ui/collection/tree-data-source.ts:13
Parameters
Section titled “Parameters”T
Returns
Section titled “Returns”string
getRoots()
Section titled “getRoots()”getRoots(): readonly
T[]
Defined in: ui/collection/tree-data-source.ts:10
Returns
Section titled “Returns”readonly T[]
isSelectable()?
Section titled “isSelectable()?”
optionalisSelectable(item):boolean
Defined in: ui/collection/tree-data-source.ts:14
Parameters
Section titled “Parameters”T
Returns
Section titled “Returns”boolean
subscribe()?
Section titled “subscribe()?”
optionalsubscribe(listener):Unsubscribe
Defined in: ui/collection/tree-data-source.ts:15
Parameters
Section titled “Parameters”listener
Section titled “listener”() => void
Returns
Section titled “Returns”Unsubscribe