You are viewing an old version of this page. View the current version.
Compare with Current View Page History
« Previous Version 23 Current »
Use the <button> tag to add a button to your widget form. The behavior is similar to React's.
By default, no event is connected to the button. Use event-click attribute to add an event when a user clicks the button.
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. A disabled button becomes gray and users cannot click it. The default value is false.
isVisible
Example:
<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>