Skip to main content

BootstrapToolbar Class

#Declaration

TypeScript
class BootstrapToolbar 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
BootstrapToolbar

#Methods

#off<K> Method

#Declaration

TypeScript
off<K extends keyof BootstrapToolbarEventMap>(
    eventName?: K,
    callback?: (this: BootstrapToolbar,
    args?: BootstrapToolbarEventMap[K]) => void
): this

#Parameters

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

#Type Parameters

Name Type
K keyof

#Returns

Type
this

#on<K>(eventName, callback) Method

#Declaration

TypeScript
on<K extends keyof BootstrapToolbarEventMap>(
    eventName: K,
    callback: (this: BootstrapToolbar,
    args?: BootstrapToolbarEventMap[K]) => void
): this

#Parameters

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

#Type Parameters

Name Type
K keyof

#Returns

Type
this

#once<K>(eventName, callback) Method

#Declaration

TypeScript
once<K extends keyof BootstrapToolbarEventMap>(
    eventName: K,
    callback: (this: BootstrapToolbar,
    args?: BootstrapToolbarEventMap[K]) => void
): this

#Parameters

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

#Type Parameters

Name Type
K keyof

#Returns

Type
this