You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

The <button> tag adds a button to your widget form. This element behavior is similar to React's.

The following attributes are applicable:

AttributeTypeMandatoryDescription
buttonTypeStringN

Specify button displaying style for forms and lists. 

  • unstyled
  • primary
  • approve
  • destructive
  • secondary


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>
  • No labels