BootstrapTreeView Class

Declaration

class BootstrapTreeView extends Control

Remarks

IMPORTANT

Bootstrap Controls for ASP.NET Core are in maintenance mode. We don’t add new controls or develop new functionality for this product line. Our recommendation is to use the ASP.NET Core Controls suite.

Inheritance

Control
BootstrapTreeView

Methods

collapseAll Method

Declaration

collapseAll(): void

expandAll Method

Declaration

expandAll(): void

getNode(index) Method

Declaration

getNode(index: number): BootstrapTreeViewNode | null

Parameters

Name Type
index number

Returns

Type
BootstrapTreeViewNode
null

getNodeByName(name) Method

Declaration

getNodeByName(name: string): BootstrapTreeViewNode | null

Parameters

Name Type
name string

Returns

Type
BootstrapTreeViewNode
null

getNodeByText(text) Method

Declaration

getNodeByText(text: string): BootstrapTreeViewNode | null

Parameters

Name Type
text string

Returns

Type
BootstrapTreeViewNode
null

getNodeCount Method

Declaration

getNodeCount(): number

Returns

Type
number

getRootNode Method

Declaration

getRootNode(): BootstrapTreeViewNode | null

Returns

Type
BootstrapTreeViewNode
null

getSelectedNode Method

Declaration

getSelectedNode(): BootstrapTreeViewNode | null

Returns

Type
BootstrapTreeViewNode
null

off<K> Method

Declaration

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

Parameters

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

Type Parameters

Name Type
K keyof

Returns

Type
this

on<K>(eventName, callback) Method

Declaration

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

Parameters

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

Type Parameters

Name Type
K keyof

Returns

Type
this

once<K>(eventName, callback) Method

Declaration

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

Parameters

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

Type Parameters

Name Type
K keyof

Returns

Type
this

setSelectedNode(node) Method

Declaration

setSelectedNode(node: BootstrapTreeViewNode): void

Parameters

Name Type
node BootstrapTreeViewNode