BootstrapTreeView Class

Declaration

export class BootstrapTreeView extends Control

Inheritance

Methods

collapseAll method

Declaration

collapseAll(): void

expandAll method

Declaration

expandAll(): void

getNode method

Declaration

getNode(index: number): BootstrapTreeViewNode | null

Parameters

Type Name Description
number index

Returns

Type Description
BootstrapTreeViewNode
null

getNodeByName method

Declaration

getNodeByName(name: string): BootstrapTreeViewNode | null

Parameters

Type Name Description
string name

Returns

Type Description
BootstrapTreeViewNode
null

getNodeByText method

Declaration

getNodeByText(text: string): BootstrapTreeViewNode | null

Parameters

Type Name Description
string text

Returns

Type Description
BootstrapTreeViewNode
null

getNodeCount method

Declaration

getNodeCount(): number

Returns

Type Description
number

getRootNode method

Declaration

getRootNode(): BootstrapTreeViewNode | null

Returns

Type Description
BootstrapTreeViewNode
null

getSelectedNode method

Declaration

getSelectedNode(): BootstrapTreeViewNode | null

Returns

Type Description
BootstrapTreeViewNode
null

off method

Declaration

off(eventName?: K, callback?: (this: BootstrapTreeView, args?: BootstrapTreeViewEventMap[K]) => void): this

Parameters

Type Name Description
K eventName
(this: BootstrapTreeView, args?: BootstrapTreeViewEventMap[K]) => void callback

Returns

Type Description
this

on method

Declaration

on(eventName: K, callback: (this: BootstrapTreeView, args?: BootstrapTreeViewEventMap[K]) => void): this

Parameters

Type Name Description
K eventName
(this: BootstrapTreeView, args?: BootstrapTreeViewEventMap[K]) => void callback

Returns

Type Description
this

once method

Declaration

once(eventName: K, callback: (this: BootstrapTreeView, args?: BootstrapTreeViewEventMap[K]) => void): this

Parameters

Type Name Description
K eventName
(this: BootstrapTreeView, args?: BootstrapTreeViewEventMap[K]) => void callback

Returns

Type Description
this

setSelectedNode method

Declaration

setSelectedNode(node: BootstrapTreeViewNode): void

Parameters

Type Name Description
BootstrapTreeViewNode node