Skip to main content

BootstrapPopupMenu Class

Declaration

class BootstrapPopupMenu extends BootstrapMenu

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
BootstrapMenu
BootstrapPopupMenu

Methods

getCurrentPopupElement Method

Declaration

getCurrentPopupElement(): any

Returns

Type
any

getCurrentPopupElementIndex Method

Declaration

getCurrentPopupElementIndex(): number

Returns

Type
number

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

getRootItem Method

Declaration

getRootItem(): BootstrapMenuItem | null

Returns

Type
BootstrapMenuItem
null

getSelectedItem Method

Declaration

getSelectedItem(): BootstrapMenuItem | null

Returns

Type
BootstrapMenuItem
null

hide Method

Declaration

hide(): void

off<K> Method

Declaration

off<K extends keyof BootstrapPopupMenuEventMap>(
    eventName?: K,
    callback?: (this: BootstrapPopupMenu,
    args?: BootstrapPopupMenuEventMap[K]) => void
): this

Parameters

Name Type
eventName K
callback (this: BootstrapPopupMenu, args?: BootstrapPopupMenuEventMap[K]) => void

Type Parameters

Name Type
K keyof

Returns

Type
this

on<K>(eventName, callback) Method

Declaration

on<K extends keyof BootstrapPopupMenuEventMap>(
    eventName: K,
    callback: (this: BootstrapPopupMenu,
    args?: BootstrapPopupMenuEventMap[K]) => void
): this

Parameters

Name Type
eventName K
callback (this: BootstrapPopupMenu, args?: BootstrapPopupMenuEventMap[K]) => void

Type Parameters

Name Type
K keyof

Returns

Type
this

once<K>(eventName, callback) Method

Declaration

once<K extends keyof BootstrapPopupMenuEventMap>(
    eventName: K,
    callback: (this: BootstrapPopupMenu,
    args?: BootstrapPopupMenuEventMap[K]) => void
): this

Parameters

Name Type
eventName K
callback (this: BootstrapPopupMenu, args?: BootstrapPopupMenuEventMap[K]) => void

Type Parameters

Name Type
K keyof

Returns

Type
this

refreshPopupElementConnection Method

Declaration

refreshPopupElementConnection(): void

setPopupElementCssSelector(selector) Method

Declaration

setPopupElementCssSelector(
    selector: string
): void

Parameters

Name Type
selector string

setPopupElementID(popupElementId) Method

Declaration

setPopupElementID(
    popupElementId: string
): void

Parameters

Name Type
popupElementId string

setSelectedItem(item) Method

Declaration

setSelectedItem(
    item: BootstrapMenuItem
): void

Parameters

Name Type
item BootstrapMenuItem

show Method

Declaration

show(): void

showAtElement(htmlElement) Method

Declaration

showAtElement(
    htmlElement: any
): void

Parameters

Name Type
htmlElement any

showAtElementByID(id) Method

Declaration

showAtElementByID(
    id: string
): void

Parameters

Name Type
id string

showAtPos(x, y) Method

Declaration

showAtPos(
    x: number,
    y: number
): void

Parameters

Name Type
x number
y number