BootstrapMenuItem Class
Declaration
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
readonly index: number
Property Value
| Type |
|---|
| number |
indexPath Property
Declaration
readonly indexPath: string
Property Value
| Type |
|---|
| string |
menu Property
Declaration
readonly menu: BootstrapMenu | null
Property Value
| Type |
|---|
| BootstrapMenu |
| null |
name Property
Declaration
readonly name: string
Property Value
| Type |
|---|
| string |
parent Property
Declaration
readonly parent: BootstrapMenuItem | null
Property Value
| Type |
|---|
| BootstrapMenuItem |
| 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 |
getEnabled Method
Declaration
getEnabled(): boolean
Returns
| Type |
|---|
| boolean |
getIconCssClass Method
Declaration
getIconCssClass(): string
Returns
| Type |
|---|
| string |
getImageUrl Method
Declaration
getImageUrl(): string
Returns
| Type |
|---|
| string |
getItem(index) Method
Declaration
getItem(
index: number
): BootstrapMenuItem | null
Parameters
| Name | Type |
|---|---|
| index | number |
Returns
| Type |
|---|
| BootstrapMenuItem |
| null |
getItemByName(name) Method
Declaration
getItemByName(
name: string
): BootstrapMenuItem | null
Parameters
| Name | Type |
|---|---|
| name | string |
Returns
| Type |
|---|
| BootstrapMenuItem |
| null |
getItemCount Method
Declaration
getItemCount(): number
Returns
| Type |
|---|
| number |
getNavigateUrl Method
Declaration
getNavigateUrl(): string
Returns
| Type |
|---|
| string |
getText Method
Declaration
getText(): string
Returns
| Type |
|---|
| string |
getVisible Method
Declaration
getVisible(): boolean
Returns
| Type |
|---|
| boolean |
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 |
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 |