The <button> tag adds a button to your widget form. This element behavior is similar to React's.
Available attributes:
Attribute | Type | Mandatory | Description | |
---|---|---|---|---|
buttonType | String | N | Specify button displaying style for forms and lists.
Use the following button types along with the svg attribute:
| |
disabled | Boolean | N | To disable the button, set the value to true. The default value is false. | |
isVisible | Boolean | N | To disable the tag display, set the value to false. The default value is true. | |
svg | String | N | Specify the SVG code of a pre-decoded image file. | |
hint | String | N | Specify the button text hint. | |
class | String | N | Specify the CSS class name that is defined in the CSS field of the widget. |
To set a button, follow the example below:
<checkbox model="data.userCanReject" event-change="window.s_widget_custom.canCheckboxHandler();"></checkbox> <button buttonType="destructive" disabled={data.userCanReject} event-click="window.s_widget_custom.reject();"> {data.rejectBtnTitle} </button> |