Skip to main content

Push Button

The Push Button component provides methods and properties to interact with push buttons. It is derived from the base componenet.

setText()

Sets the text displayed on the push button.

setText(text: string): void;

setTextColor()

Sets the text color of the push button.

setTextColor(color: string): void;

setFontSize()

Sets the font size of the text on the push button.

setFontSize(size: number): void;

setBackgroundColor()

Sets the background color of the push button.

setBackgroundColor(color: string): void;

setBorderRadius()

Sets the border radius of the push button.

setBorderRadius(radius: number): void;

setDisabled()

Sets the disabled status of the push button.

setDisabled(disabled: boolean): void;

getDisabled()

Gets the disabled status of the push button.

getDisabled(): boolean;

Properties

hasUserInput

Indicates if the push button has been clicked by the user.

hasUserInput: boolean;