The requested page is not available for the requested platform. You are viewing the content for Default platform.

BootstrapTreeView Class

Declaration

export 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 Method

Declaration

getNode(index: number): BootstrapTreeViewNode | null

Parameters

Name Type Description
index

Returns

Type Description
null
null

getNodeByName Method

Declaration

getNodeByName(name: string): BootstrapTreeViewNode | null

Parameters

Name Type Description
name

Returns

Type Description
null
null

getNodeByText Method

Declaration

getNodeByText(text: string): BootstrapTreeViewNode | null

Parameters

Name Type Description
text

Returns

Type Description
null
null

getNodeCount Method

Declaration

getNodeCount(): number

Returns

Type Description
number

getRootNode Method

Declaration

getRootNode(): BootstrapTreeViewNode | null

Returns

Type Description
null
null

getSelectedNode Method

Declaration

getSelectedNode(): BootstrapTreeViewNode | null

Returns

Type Description
null
null

off Method

Declaration

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

Parameters

Name Type Description
eventName
callback

Returns

Type Description
this

on Method

Declaration

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

Parameters

Name Type Description
eventName
callback

Returns

Type Description
this

once Method

Declaration

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

Parameters

Name Type Description
eventName
callback

Returns

Type Description
this

setSelectedNode Method

Declaration

setSelectedNode(node: BootstrapTreeViewNode): void

Parameters

Name Type Description
node