BootstrapMenu Class
Declaration
class BootstrapMenu 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
getItem(
index: number
): BootstrapMenuItem | null
getItemByName(
name: string
): BootstrapMenuItem | null
getItemCount(): number
getOrientation(): string
getRootItem(): BootstrapMenuItem | null
getSelectedItem(): BootstrapMenuItem | null
off<K extends keyof BootstrapMenuEventMap>(
eventName?: K,
callback?: (this: BootstrapMenu,
args?: BootstrapMenuEventMap[K]) => void
): this
Name |
Type |
eventName |
K |
callback |
(this: BootstrapMenu, args?: BootstrapMenuEventMap[K]) => void |
on<K extends keyof BootstrapMenuEventMap>(
eventName: K,
callback: (this: BootstrapMenu,
args?: BootstrapMenuEventMap[K]) => void
): this
Name |
Type |
eventName |
K |
callback |
(this: BootstrapMenu, args?: BootstrapMenuEventMap[K]) => void |
once<K extends keyof BootstrapMenuEventMap>(
eventName: K,
callback: (this: BootstrapMenu,
args?: BootstrapMenuEventMap[K]) => void
): this
Name |
Type |
eventName |
K |
callback |
(this: BootstrapMenu, args?: BootstrapMenuEventMap[K]) => void |
setOrientation(
orientation: string
): void
Name |
Type |
orientation |
string |
setSelectedItem(
item: BootstrapMenuItem
): void