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. The disabled buttons appear in gray.
|
To set a button, follow the example below:
Button
<button buttonType="approve" event-click="window.s_widget_custom.approve();"> {data.approveBtnTitle} </button> <button buttonType="destructive" event-click="window.s_widget_custom.reject();"> {data.rejectBtnTitle} </button>