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 the button style for forms and lists. The disabled buttons appear in gray.
|
disabled | Boolean | N | Specify whether the button should be disabled. A disabled button cannot be clicked. |
To set a button, follow the example below:
Button
<checkbox model="data.doesUserCanReject" event-change="window.s_widget_custom.canCheckboxHandler();"></checkbox> <button buttonType="destructive" disabled={data.doesUserCanReject} event-click="window.s_widget_custom.reject();"> {data.rejectBtnTitle} </button>