Skip to content

TreeItem

Code location

TreeItem<T>: TreeNode<T> & object

Type declaration

collapsed

collapsed: boolean

collapseEl

collapseEl: HTMLElement

collapsible

collapsible: boolean

coverEl

coverEl: HTMLElement

innerEl

innerEl: HTMLElement

parent

parent: TreeNode<T> | undefined

selfEl

selfEl: HTMLElement

view

view: View

onCollapseClick()

Execute collapse functionality on mouse click

Parameters

event: MouseEvent

Returns

void

onSelfClick()

Execute item functionality on clicking tree item

Parameters

event: MouseEvent

Returns

void

setClickable()

Set clickable state of tree item

Parameters

clickable: boolean

Returns

void

setCollapsed()

Set collapsed state of tree item

Parameters

collapsed: boolean

check: boolean

Returns

Promise<undefined>

setCollapsible()

Set collapsible state of tree item

Parameters

collapsible: boolean

Returns

void

toggleCollapsed()

Toggle collapsed state of tree item

Parameters

check: boolean

Returns

Promise<undefined>

Type Parameters

T