Constructor
| Name | Type | Description |
|---|---|---|
| elementId | string | A unique identifier for the button element |
| action | APIAction | URLNavigationAction | CustomAction | The action to be performed when the button is clicked |
| buttonText | string | The text to be displayed on the button. Default value is an empty string |
Class Usage
How to create an instance of the ButtonElement class:- TypeScript
Key Properties and Methods
Button Interaction Property
The setDisableAfterInteracted() method allows changing this property. It accepts a boolean value indicating whether the button should be disabled after it is interacted with.- TypeScript
Example
Below is an example that showcases the creation and manipulation of an instance of ButtonElement:- TypeScript