Modals

A modal—sometimes called a popup—is a dialog box that overlays, a page, allowing the end user to see and interact with a selected set of Skuid components and their data without actually leaving the page.

How data is displayed within a modal is determined by which components are added to the modal’s dialog box.

Using Modals

Add modals wherever you can add action triggers to the page. Add a Show modal action wherever the Action Framework is used (for example, on the Table component when creating row, global, or mass actions, or interactions.

Once you create the trigger, add an icon and/or label that end users can select to open the modal.

Then, customize the modal box itself by clicking Configure modal:

  • Add a Title that will display on the modal’s header. You can also adjust the Width or even change the icon used to close the modal.
  • Since the modal is essentially a container, add components to the modal to display data:
    • As always, be sure to attach the component to the appropriate model, and configure it to display the necessary data.

Best Practices

  • Because modals are a way to display a small subset of data without navigating away from the page, they often include one (or more) data components. But bear in mind that a modal is a limited space, a temporary “working area.” Use modals for specific, concentrated tasks that the user needs to complete before returning to a workflow on the underlying page.
  • To display a more complex or detailed set of tasks in an element that nonetheless allows the end user to easily navigate back to their main workflow, consider using a Tab Set component.

Properties

(Just need to look up a property? Try going directly to the Property Library.)

Component properties

General tab [[]]

  • Title: A descriptive name for the modal that will appear in the modal’s header.

  • Full screen modal: If checked, the modal displays across the available width of the screen.

    • Width: Adjust the width of the modal using percentage, pixel, or other forms of measurement.

      Note

      This property is not available if Full screen modal is checked.

  • Show close icon: If checked, the modal displays an icon at the corner that can be used to close the modal.

    • Close icon (optional): The icon used to close the modal. Click the field picker to select an icon.
  • Show header: If checked, the modal includes a header with the Title contained within it. If unchecked, the header (and title) does not display.

  • Show button footer: If the Builder clicks add Add Button in the modal, this determines whether that button displays. If checked, the modal includes a footer with one (or more) button. If unchecked, the footer—and the buttons–do not display.

    • Footer button alignment: Choose the alignment of the added buttons:

      • Left
      • Middle
      • Right

Advanced tab [[]]

  • Unique ID (optional): Skuid automatically generates an alphanumeric ID for the modal; if preferred, give it a practical name.
  • Moveable: If checked, end users can move the modal to a different location on the screen.
  • Resizable: If checked, end users can resized the modal.

Styles tab [[]]

After-close actions tab [[]]

Set actions that will occur once the modal is closed.

Nested elements