The requested page is not available for the requested platform. You are viewing the content for Default platform.

BootstrapMenu Class

Declaration

export class BootstrapMenu 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

Methods

getItem Method

Declaration

getItem(index: number): BootstrapMenuItem | null

Parameters

Name Type Description
index

Returns

Type Description
BootstrapMenuItem
null

getItemByName Method

Declaration

getItemByName(name: string): BootstrapMenuItem | null

Parameters

Name Type Description
name

Returns

Type Description
BootstrapMenuItem
null

getItemCount Method

Declaration

getItemCount(): number

Returns

Type Description
number

getOrientation Method

Declaration

getOrientation(): string

Returns

Type Description
string

getRootItem Method

Declaration

getRootItem(): BootstrapMenuItem | null

Returns

Type Description
BootstrapMenuItem
null

getSelectedItem Method

Declaration

getSelectedItem(): BootstrapMenuItem | null

Returns

Type Description
BootstrapMenuItem
null

off Method

Declaration

off(eventName?: K, callback?: (this: BootstrapMenu, args?: BootstrapMenuEventMap[K]) => void): this

Parameters

Name Type Description
eventName
callback

Returns

Type Description
this

on Method

Declaration

on(eventName: K, callback: (this: BootstrapMenu, args?: BootstrapMenuEventMap[K]) => void): this

Parameters

Name Type Description
eventName
callback

Returns

Type Description
this

once Method

Declaration

once(eventName: K, callback: (this: BootstrapMenu, args?: BootstrapMenuEventMap[K]) => void): this

Parameters

Name Type Description
eventName
callback

Returns

Type Description
this

setOrientation Method

Declaration

setOrientation(orientation: string): void

Parameters

Name Type Description
orientation

setSelectedItem Method

Declaration

setSelectedItem(item: BootstrapMenuItem): void

Parameters

Name Type Description
item