Skip to content

TreeDataSource

Defined in: ui/collection/tree-data-source.ts:9

Adapt any project model to a tree; mutations and persistence stay with the host.

T

getChildren(item): readonly T[]

Defined in: ui/collection/tree-data-source.ts:11

T

readonly T[]


getId(item): TreeItemId

Defined in: ui/collection/tree-data-source.ts:12

T

TreeItemId


getLabel(item): string

Defined in: ui/collection/tree-data-source.ts:13

T

string


getRoots(): readonly T[]

Defined in: ui/collection/tree-data-source.ts:10

readonly T[]


optional isSelectable(item): boolean

Defined in: ui/collection/tree-data-source.ts:14

T

boolean


optional subscribe(listener): Unsubscribe

Defined in: ui/collection/tree-data-source.ts:15

() => void

Unsubscribe