Button
The Button button
field is a on/off button which returns a boolean value.
Example
{
"component": "button",
"label": "Field 1",
"name": "my_button",
"labelOn": "on",
"labelOff": "off",
"buttonType": "plain",
}
Loading...
Reference
Property | Type | Description |
---|---|---|
component | string | = "button" |
name | string | The name of the field and the key of the JSON |
buttonType | string | Type of button: toggle 2-states button or link button. Values: "toggle", "link". |
labelOn | string | i18n | |
iconOn | string | |
labelOff | string | i18n | |
iconOff | string | |
initialValue | boolean | |
labelLink | string | i18n | |
iconLink | string | |
href | string | |
hint | string | i18n | Show hint in a tooltip |
fullWidth | boolean | Set the width of the field to 100% of the enclosing container |
width | number | Set the width (in pixel) of the field |
hidden | boolean | Hides the field from the form |
Pick up a framework to show specific properties |