Skip to main content

Button


When a button is clicked, it typically fires an action or triggers an event. The specific action or event that occurs depends on the code behind the button's onClick. For example, a button might submit a form or save the data and progress its process.

Button Properties

The button is represented as a rounded rectangle. And has a text "label" overlay describing the action performed with the button click.

PropertyDescription
LableThe text entered here will be displayed over the button.
Disabled
(Checkbox)
On selecting the checkbox, the GUI of the button "Greys Out" (i.e., the button becomes inactive and non-clickable).
Visual Feedback
(Checkbox)
Selecting the checkbox enables feedback on the button click. This gives a visual confirmation of the click.
Button
Visual Color
(Only when "Visual Feedback" is checked)
Sets the color of the visual feedback.

API Methods

setDisabled

Sets the Disabled flag for this component.

setDisabled(readOnly: boolean): void

setVisibility

Sets the Visibility flag for this component.

setVisibility(visible: boolean): void

setVisibilityCondition

Sets the visibility condition for this component.

setVisibilityCondition(condition: string): void

Event Handlers

Event handlers allow you to set triggers for various actions based on the fired events. They are as follows:

onClick

onClick - Triggers an action, such as calling for a service or function when the button is clicked.