Skip to main content

BootstrapTreeViewNode Class

In This Article

#Declaration

TypeScript
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

TypeScript
readonly index: number

#Property Value

Type
number

#name Property

#Declaration

TypeScript
readonly name: string

#Property Value

Type
string

#parent Property

#Declaration

TypeScript
readonly parent: BootstrapTreeViewNode | null

#Property Value

Type
BootstrapTreeViewNode
null

#treeView Property

#Declaration

TypeScript
readonly treeView: BootstrapTreeView | null

#Property Value

Type
BootstrapTreeView
null

#Methods

#getBadgeIconCssClass Method

#Declaration

TypeScript
getBadgeIconCssClass(): string

#Returns

Type
string

#getBadgeText Method

#Declaration

TypeScript
getBadgeText(): string

#Returns

Type
string

#getChecked Method

#Declaration

TypeScript
getChecked(): boolean

#Returns

Type
boolean

#getCheckState Method

#Declaration

TypeScript
getCheckState(): string

#Returns

Type
string

#getEnabled Method

#Declaration

TypeScript
getEnabled(): boolean

#Returns

Type
boolean

#getExpanded Method

#Declaration

TypeScript
getExpanded(): boolean

#Returns

Type
boolean

#getHtmlElement Method

#Declaration

TypeScript
getHtmlElement(): any

#Returns

Type
any

#getIconCssClass Method

#Declaration

TypeScript
getIconCssClass(): string

#Returns

Type
string

#getImageUrl Method

#Declaration

TypeScript
getImageUrl(): string

#Returns

Type
string

#getNavigateUrl Method

#Declaration

TypeScript
getNavigateUrl(): string

#Returns

Type
string

#getNode(index) Method

#Declaration

TypeScript
getNode(
    index: number
): BootstrapTreeViewNode | null

#Parameters

Name Type
index number

#Returns

Type
BootstrapTreeViewNode
null

#getNodeByName(name) Method

#Declaration

TypeScript
getNodeByName(
    name: string
): BootstrapTreeViewNode | null

#Parameters

Name Type
name string

#Returns

Type
BootstrapTreeViewNode
null

#getNodeByText(text) Method

#Declaration

TypeScript
getNodeByText(
    text: string
): BootstrapTreeViewNode | null

#Parameters

Name Type
text string

#Returns

Type
BootstrapTreeViewNode
null

#getNodeCount Method

#Declaration

TypeScript
getNodeCount(): number

#Returns

Type
number

#getText Method

#Declaration

TypeScript
getText(): string

#Returns

Type
string

#getVisible Method

#Declaration

TypeScript
getVisible(): boolean

#Returns

Type
boolean

#off<K> Method

#Declaration

TypeScript
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

TypeScript
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

TypeScript
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

TypeScript
setBadgeIconCssClass(
    cssClass: string
): void

#Parameters

Name Type
cssClass string

#setBadgeText(text) Method

#Declaration

TypeScript
setBadgeText(
    text: string
): void

#Parameters

Name Type
text string

#setChecked(value) Method

#Declaration

TypeScript
setChecked(
    value: boolean
): void

#Parameters

Name Type
value boolean

#setEnabled(value) Method

#Declaration

TypeScript
setEnabled(
    value: boolean
): void

#Parameters

Name Type
value boolean

#setExpanded(value) Method

#Declaration

TypeScript
setExpanded(
    value: boolean
): void

#Parameters

Name Type
value boolean

#setIconCssClass(cssClass) Method

#Declaration

TypeScript
setIconCssClass(
    cssClass: string
): void

#Parameters

Name Type
cssClass string

#setImageUrl(value) Method

#Declaration

TypeScript
setImageUrl(
    value: string
): void

#Parameters

Name Type
value string

#setNavigateUrl(value) Method

#Declaration

TypeScript
setNavigateUrl(
    value: string
): void

#Parameters

Name Type
value string

#setText(value) Method

#Declaration

TypeScript
setText(
    value: string
): void

#Parameters

Name Type
value string

#setVisible(value) Method

#Declaration

TypeScript
setVisible(
    value: boolean
): void

#Parameters

Name Type
value boolean