Button
This element executes an action on user click.
Note
This element is not available in the CyberApp enablement form.
Properties
- IDElement identifier.
- LabelThe button label text.
- Type (see examples)The button type. Each type has a different style.- Primary 
- Secondary 
- Danger 
- Ghost 
- Promo 
- Translucent 
 
- Width (see examples) - DefaultThis is for backward compatibility purposes only.
- Fit (default)Sets the width to accomodate the label.
 
- Padding (see examples)The internal padding of the button, which determines its overall size.- Small 
- Medium (default) 
- Large 
 
- [Optional] Icon name (see examples)Inserts an icon to the left of the label.If you select a monochrome icon, it is displayed in white. A colored icon is displayed unaltered.
- On clickThe action executed when the user clicks the button.- Close FormThe form closes if the user clicks the button.
- CallbackA callback is executed.- Choose the callback from the Callback name dropdown. 
- Specify any request and response mappings you require 
 
- Open formA form is opened.- Choose the Mode: - Popup 
- Sidebar - Note - The demo CyberApp illustrates both options. 
 
- Choose the form in the Form name dropdown. 
- [Optional] Map input parameters 
 
- OtherSelect the Action type from the dropdown:- Set Parameters This option allows you to explicitly set form element and input parameter values if the user clicks the button. A common use for this functionality is for a reset filters button without executing a callback.When you select this option, an JSON edit panel appears, where you must provide JSON to apply when the user clicks the button. The edit panel is interactive: it suggests element IDs and parameters as you type, highlights invalid IDs and parameters, and indicates invalid values. This option allows you to explicitly set form element and input parameter values if the user clicks the button. A common use for this functionality is for a reset filters button without executing a callback.When you select this option, an JSON edit panel appears, where you must provide JSON to apply when the user clicks the button. The edit panel is interactive: it suggests element IDs and parameters as you type, highlights invalid IDs and parameters, and indicates invalid values.
- No actionThe button does nothing.
 
 
Examples
Button types
 
Button width examples
 
Button padding examples
 
Button icons examples
