跳转到内容

TreeViewOptions

此内容尚不支持你的语言。

Defined in: ui/widgets/tree-view.ts:36

Generic data, optional custom row template, and host-owned drop policy.

T = TreeViewNode

optional canDrop?: (request) => boolean

Defined in: ui/widgets/tree-view.ts:47

TreeDropRequest<T>

boolean


optional data?: TreeDataSource<T>

Defined in: ui/widgets/tree-view.ts:41


optional dragHandle?: (rowEntity) => number

Defined in: ui/widgets/tree-view.ts:46

A custom template can nominate its drag grip; the rest of the row scrolls.

number

number


events: EntityEventQueue

Defined in: ui/widgets/tree-view.ts:38


optional item?: ListItemTemplate<TreeRow<T>>

Defined in: ui/widgets/tree-view.ts:44


optional node?: UINodeInit

Defined in: ui/widgets/tree-view.ts:40


optional nodes?: TreeViewNode[]

Defined in: ui/widgets/tree-view.ts:42


optional onChange?: (ids) => void

Defined in: ui/widgets/tree-view.ts:49

readonly TreeItemId[]

void


optional onDrop?: (request) => void

Defined in: ui/widgets/tree-view.ts:48

TreeDropRequest<T>

void


optional parent?: number

Defined in: ui/widgets/tree-view.ts:39


optional settings?: Partial<Omit<UITreeViewData, "nodes">>

Defined in: ui/widgets/tree-view.ts:43


world: World

Defined in: ui/widgets/tree-view.ts:37