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-clickattribute to add an event when a user clicks the button.
Available attributes:
Attribute
Type
Mandatory
Description
buttonType
String
N
Specify button display style for forms and lists.
primary – a blue color button:
approve – a green color button:
destructive – a red color button:
secondary – a transparent background for the button with no borders:
Use the following button types along with the svg attribute and without a text title:
icon – a square button, 32x32 pixels:
icon-mini – a square button that looks the same as icon but smaller – 20x20 pixels:
icon-primary – a square button with blue background, 32x32 pixels:
icon-border – a square button with borders, 32x32 pixels:
Use the following button types along with the svg attribute and a text title:
expand – a rectangular button with light blue background:
If you do not specify the buttonType or set the value that is not included in the list above, the default button type is used – a button with transparent background and black borders:
disabled
Boolean
N
Set the value to true to disable the button. A disabled button becomes gray and users cannot click it. The default value isfalse.
isVisible
Boolean
N
Set the value to falseto hide thebutton. The default value istrue.
svg
String
N
Specify the SVG code of a pre-decoded image file.
hint
String
N
Add a text hint for the button.
class
String
N
Specify the CSS class name that is defined in the CSS field of the widget.