Skip to main content

BootstrapTreeViewNode Class

Declaration

class BootstrapTreeViewNode 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
BootstrapTreeViewNode

Properties

index Property

Declaration

readonly index: number

Property Value

Type
number

name Property

Declaration

readonly name: string

Property Value

Type
string

parent Property

Declaration

readonly parent: BootstrapTreeViewNode | null

Property Value

Type
BootstrapTreeViewNode
null

treeView Property

Declaration

readonly treeView: BootstrapTreeView | null

Property Value

Type
BootstrapTreeView
null

Methods

getBadgeIconCssClass Method

Declaration

getBadgeIconCssClass(): string

Returns

Type
string

getBadgeText Method

Declaration

getBadgeText(): string

Returns

Type
string

getChecked Method

Declaration

getChecked(): boolean

Returns

Type
boolean

getCheckState Method

Declaration

getCheckState(): string

Returns

Type
string

getEnabled Method

Declaration

getEnabled(): boolean

Returns

Type
boolean

getExpanded Method

Declaration

getExpanded(): boolean

Returns

Type
boolean

getHtmlElement Method

Declaration

getHtmlElement(): any

Returns

Type
any

getIconCssClass Method

Declaration

getIconCssClass(): string

Returns

Type
string

getImageUrl Method

Declaration

getImageUrl(): string

Returns

Type
string

getNavigateUrl Method

Declaration

getNavigateUrl(): string

Returns

Type
string

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

getText Method

Declaration

getText(): string

Returns

Type
string

getVisible Method

Declaration

getVisible(): boolean

Returns

Type
boolean

off<K> Method

Declaration

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

Parameters

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

Type Parameters

Name Type
K keyof

Returns

Type
this

on<K>(eventName, callback) Method

Declaration

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

Parameters

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

Type Parameters

Name Type
K keyof

Returns

Type
this

once<K>(eventName, callback) Method

Declaration

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

Parameters

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

Type Parameters

Name Type
K keyof

Returns

Type
this

setBadgeIconCssClass(cssClass) Method

Declaration

setBadgeIconCssClass(
    cssClass: string
): void

Parameters

Name Type
cssClass string

setBadgeText(text) Method

Declaration

setBadgeText(
    text: string
): void

Parameters

Name Type
text string

setChecked(value) Method

Declaration

setChecked(
    value: boolean
): void

Parameters

Name Type
value boolean

setEnabled(value) Method

Declaration

setEnabled(
    value: boolean
): void

Parameters

Name Type
value boolean

setExpanded(value) Method

Declaration

setExpanded(
    value: boolean
): void

Parameters

Name Type
value boolean

setIconCssClass(cssClass) Method

Declaration

setIconCssClass(
    cssClass: string
): void

Parameters

Name Type
cssClass string

setImageUrl(value) Method

Declaration

setImageUrl(
    value: string
): void

Parameters

Name Type
value string

setNavigateUrl(value) Method

Declaration

setNavigateUrl(
    value: string
): void

Parameters

Name Type
value string

setText(value) Method

Declaration

setText(
    value: string
): void

Parameters

Name Type
value string

setVisible(value) Method

Declaration

setVisible(
    value: boolean
): void

Parameters

Name Type
value boolean