Skip to main content

BootstrapPopupMenu Class

#Declaration

TypeScript
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

TypeScript
getCurrentPopupElement(): any

#Returns

Type
any

#getCurrentPopupElementIndex Method

#Declaration

TypeScript
getCurrentPopupElementIndex(): number

#Returns

Type
number

#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

#getRootItem Method

#Declaration

TypeScript
getRootItem(): BootstrapMenuItem | null

#Returns

Type
BootstrapMenuItem
null

#getSelectedItem Method

#Declaration

TypeScript
getSelectedItem(): BootstrapMenuItem | null

#Returns

Type
BootstrapMenuItem
null

#hide Method

#Declaration

TypeScript
hide(): void

#off<K> Method

#Declaration

TypeScript
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

TypeScript
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

TypeScript
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

TypeScript
refreshPopupElementConnection(): void

#setPopupElementCssSelector(selector) Method

#Declaration

TypeScript
setPopupElementCssSelector(
    selector: string
): void

#Parameters

Name Type
selector string

#setPopupElementID(popupElementId) Method

#Declaration

TypeScript
setPopupElementID(
    popupElementId: string
): void

#Parameters

Name Type
popupElementId string

#setSelectedItem(item) Method

#Declaration

TypeScript
setSelectedItem(
    item: BootstrapMenuItem
): void

#Parameters

Name Type
item BootstrapMenuItem

#show Method

#Declaration

TypeScript
show(): void

#showAtElement(htmlElement) Method

#Declaration

TypeScript
showAtElement(
    htmlElement: any
): void

#Parameters

Name Type
htmlElement any

#showAtElementByID(id) Method

#Declaration

TypeScript
showAtElementByID(
    id: string
): void

#Parameters

Name Type
id string

#showAtPos(x, y) Method

#Declaration

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

#Parameters

Name Type
x number
y number