BootstrapButton Class
Declaration
class BootstrapButton 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
Simulates a mouse click action on the button control.
doClick(): void
Sets input focus to the button.
focus(): void
getBadgeIconCssClass(): string
getBadgeText Method
Declaration
getBadgeText(): string
Returns
Returns a value indicating whether the button is checked.
getChecked(): boolean
Returns a value indicating whether the button is enabled.
getEnabled(): boolean
getImageUrl(): string
getText Method
Returns the text displayed within the button.
Declaration
getText(): string
Returns
off<K extends keyof BootstrapButtonEventMap>(
eventName?: K,
callback?: (this: BootstrapButton,
args?: BootstrapButtonEventMap[K]) => void
): this
Name |
Type |
eventName |
K |
callback |
(this: BootstrapButton, args?: BootstrapButtonEventMap[K]) => void |
on<K extends keyof BootstrapButtonEventMap>(
eventName: K,
callback: (this: BootstrapButton,
args?: BootstrapButtonEventMap[K]) => void
): this
Name |
Type |
eventName |
K |
callback |
(this: BootstrapButton, args?: BootstrapButtonEventMap[K]) => void |
once<K extends keyof BootstrapButtonEventMap>(
eventName: K,
callback: (this: BootstrapButton,
args?: BootstrapButtonEventMap[K]) => void
): this
Name |
Type |
eventName |
K |
callback |
(this: BootstrapButton, args?: BootstrapButtonEventMap[K]) => void |
setBadgeIconCssClass(
cssClass: string
): void
Name |
Type |
cssClass |
string |
setBadgeText(text) Method
Declaration
setBadgeText(
text: string
): void
Parameters
Sets a value that specifies the button’s checked status.
setChecked(
value: boolean
): void
Sets a value specifying whether the button is enabled.
setEnabled(
value: boolean
): void
setImageUrl(
value: string
): void
setText(value) Method
Sets the text to be displayed within the button.
Declaration
setText(
value: string
): void
Parameters