You are viewing an old version of this page. View the current version.
Compare with Current View Page History
« Previous Version 18 Next »
Use the <button> tag to add a button to your widget form. The behavior is similar to React's.
By default, no action is connected to the button. If you want to add action that occurs when the clicks the button, use event-click attribute.
Available attributes:
Specify button display style for forms and lists.
secondary – a transparent background for the button
Use the following button types along with the svg attribute:
icon-mini – a small square button
icon – a square button
Set the value to true to disable the button. The default value is false.
The disabled buttons appear in gray.
isVisible
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>