BootstrapButton Class

Declaration

export class BootstrapButton extends Control

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

getBadgeText Method

Declaration

getBadgeText(): string

Returns

Type Description

getChecked Method

Returns a value indicating whether the button is checked.

Declaration

getChecked(): boolean

Returns

Type Description

getEnabled Method

Returns a value indicating whether the button is enabled.

Declaration

getEnabled(): boolean

Returns

Type Description

getImageUrl Method

Declaration

getImageUrl(): string

Returns

Type Description

getText Method

Returns the text displayed within the button.

Declaration

getText(): string

Returns

Type Description

off Method

Declaration

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

Parameters

Type Name Description
eventName
callback

Returns

Type Description

on Method

Declaration

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

Parameters

Type Name Description
eventName
callback

Returns

Type Description

once Method

Declaration

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

Parameters

Type Name Description
eventName
callback

Returns

Type Description

setBadgeIconCssClass Method

Declaration

setBadgeIconCssClass(cssClass: string): void

Parameters

Type Name Description
cssClass

setBadgeText Method

Declaration

setBadgeText(text: string): void

Parameters

Type Name Description
text

setChecked Method

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

Declaration

setChecked(value: boolean): void

Parameters

Type Name Description
value

setEnabled Method

Sets a value specifying whether the button is enabled.

Declaration

setEnabled(value: boolean): void

Parameters

Type Name Description
value

setImageUrl Method

Declaration

setImageUrl(value: string): void

Parameters

Type Name Description
value

setText Method

Sets the text to be displayed within the button.

Declaration

setText(value: string): void

Parameters

Type Name Description
value