Table action buttons

In the Action buttons section of a table element, you can define table action buttons, which appear above the table.

You can optionally turn on the Show actions as ellipsis button options in table row toggle switch to add a table column with an ellipsis menu button, which displays the action button labels.
It also displays the settings icon, which users can click to hide or display columns.

To add a table action button

  1. Click + New action button.

    ../../../../../../_images/ss-uibuilder-tableaction-onclick.png
  2. Enter an Action name for the button
    This displays as the action button label.
  3. Select a Type from the dropdown list.
    Each type has a different style. See examples.
    • Primary

    • Secondary

    • Danger

    • Ghost

    • Promo

    • Translucent

  4. Availability
    This determines whether the action button is clickable or not.
    • Always enabled

    • If one row is selected

    • If some rows are selected

    • If no rows are selected

  5. [Optional] Select an Icon name from the dropdown list.
    This inserts an icon to the left of the Action name label. See examples.
    If you select a monochrome icon, it is displayed in white. A colored icon is displayed unaltered.
  6. In the Operations section:

    This section defines operations executed when a user clicks the action button.
    You can define multiple (optional) data operations and a form operation.
    • [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.

  7. Click outside the popup window to save your changes.

Note

You can reorder table action buttons by clicking and dragging the action button panel.
To delete an action button, click its trash can icon.
Each Action button panel provides a summary of the operations that you defined for the button.

Examples

Button types

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