The <button> tag adds a button to your widget form. This element behavior is similar to React's.
The following attributes are applicable:
Attribute | Type | Mandatory | Description |
---|---|---|---|
buttonType | String | N | Specify button displaying style for forms and lists.
|
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>