Button

This element executes an action on user click.

See examples

Note

This element is not available in the CyberApp enablement form.

Properties

  • ID
    Element identifier.
  • Label
    The button label text.
  • The button type. Each type has a different style.
    • Primary

    • Secondary

    • Danger

    • Ghost

    • Promo

    • Translucent

  • Width (see examples)

    • Default
      This is for backward compatibility purposes only.
    • Fit (default)
      Sets the width to accomodate the label.
    • Fill
      Uses all of the available width.
      For more information, see Element distribution.
  • 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 click
    Operations executed when a user clicks the button.
    You can define multiple (optional) data operations and a form operation.

    Note

    The panel provides a summary of operations that you have defined.

    Click the On click panel to define or change the ‘on click’ operations.

    ../../../../../../_images/ss-uibuilder-button-onclick.png
    • [Optional] Data operations

      1. Click + Add to define a data operation.

      2. Select the Operation type.

        • Callback
          Executes a callback.
          You must select the callback from the dropdown list.
        • 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, a 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.
      3. Repeat the previous steps for all the data operations that you want to execute when a user clicks the button.

        Note

        Click the trash can icon to remove a data operation.

    • Form operation

      1. Select an action from the dropdown list.

    Click outside the popup window to save your changes.

Button style examples

Button types

../../../../../../_images/ss-element-button-types.png

Button width examples

../../../../../../_images/ss-element-button-width.png

Button padding examples

../../../../../../_images/ss-element-button-padding.png

Button icons examples

../../../../../../_images/ss-element-button-icons.png