BootstrapTreeView Class
Declaration
class BootstrapTreeView extends Control
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.
Methods
collapseAll Method
Declaration
collapseAll(): void
expandAll Method
Declaration
expandAll(): void
getNode(index) Method
Declaration
getNode(
index: number
): BootstrapTreeViewNode | null
Parameters
Returns
getNodeByName(name) Method
Declaration
getNodeByName(
name: string
): BootstrapTreeViewNode | null
Parameters
Returns
getNodeByText(text) Method
Declaration
getNodeByText(
text: string
): BootstrapTreeViewNode | null
Parameters
Returns
getNodeCount Method
Declaration
getNodeCount(): number
Returns
getRootNode Method
Declaration
getRootNode(): BootstrapTreeViewNode | null
Returns
getSelectedNode Method
Declaration
getSelectedNode(): BootstrapTreeViewNode | null
Returns
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
Returns
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
Returns
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
Returns
setSelectedNode(node) Method
Declaration
setSelectedNode(
node: BootstrapTreeViewNode
): void
Parameters