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

BootstrapButton Class

Declaration

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

Control
BootstrapButton

Methods

doClick Method

Simulates a mouse click action on the button control.

Declaration

doClick(): void

focus Method

Sets input focus to the button.

Declaration

focus(): void

getBadgeIconCssClass Method

Declaration

getBadgeIconCssClass(): string

Returns

Type Description
string

getBadgeText Method

Declaration

getBadgeText(): string

Returns

Type Description
string

getChecked Method

Returns a value indicating whether the button is checked.

Declaration

getChecked(): boolean

Returns

Type Description
boolean

getEnabled Method

Returns a value indicating whether the button is enabled.

Declaration

getEnabled(): boolean

Returns

Type Description
boolean

getImageUrl Method

Declaration

getImageUrl(): string

Returns

Type Description
string

getText Method

Returns the text displayed within the button.

Declaration

getText(): string

Returns

Type Description
string

off Method

Declaration

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

Parameters

Name Type Description
eventName
callback

Returns

Type Description
this

on Method

Declaration

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

Parameters

Name Type Description
eventName
callback

Returns

Type Description
this

once Method

Declaration

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

Parameters

Name Type Description
eventName
callback

Returns

Type Description
this

setBadgeIconCssClass Method

Declaration

setBadgeIconCssClass(cssClass: string): void

Parameters

Name Type Description
cssClass

setBadgeText Method

Declaration

setBadgeText(text: string): void

Parameters

Name Type Description
text

setChecked Method

Sets a value that specifies the button's checked status.

Declaration

setChecked(value: boolean): void

Parameters

Name Type Description
value

setEnabled Method

Sets a value specifying whether the button is enabled.

Declaration

setEnabled(value: boolean): void

Parameters

Name Type Description
value

setImageUrl Method

Declaration

setImageUrl(value: string): void

Parameters

Name Type Description
value

setText Method

Sets the text to be displayed within the button.

Declaration

setText(value: string): void

Parameters

Name Type Description
value