Skip to main content

BootstrapMenuItem Class

#Declaration

TypeScript
class BootstrapMenuItem

#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.

#Properties

#index Property

#Declaration

TypeScript
readonly index: number

#Property Value

Type
number

#indexPath Property

#Declaration

TypeScript
readonly indexPath: string

#Property Value

Type
string

#menu Property

#Declaration

TypeScript
readonly menu: BootstrapMenu | null

#Property Value

Type
BootstrapMenu
null

#name Property

#Declaration

TypeScript
readonly name: string

#Property Value

Type
string

#parent Property

#Declaration

TypeScript
readonly parent: BootstrapMenuItem | null

#Property Value

Type
BootstrapMenuItem
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

#getEnabled Method

#Declaration

TypeScript
getEnabled(): boolean

#Returns

Type
boolean

#getIconCssClass Method

#Declaration

TypeScript
getIconCssClass(): string

#Returns

Type
string

#getImageUrl Method

#Declaration

TypeScript
getImageUrl(): string

#Returns

Type
string

#getItem(index) Method

#Declaration

TypeScript
getItem(
    index: number
): BootstrapMenuItem | null

#Parameters

Name Type
index number

#Returns

Type
BootstrapMenuItem
null

#getItemByName(name) Method

#Declaration

TypeScript
getItemByName(
    name: string
): BootstrapMenuItem | null

#Parameters

Name Type
name string

#Returns

Type
BootstrapMenuItem
null

#getItemCount Method

#Declaration

TypeScript
getItemCount(): number

#Returns

Type
number

#getNavigateUrl Method

#Declaration

TypeScript
getNavigateUrl(): string

#Returns

Type
string

#getText Method

#Declaration

TypeScript
getText(): string

#Returns

Type
string

#getVisible Method

#Declaration

TypeScript
getVisible(): boolean

#Returns

Type
boolean

#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

#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