Drawers

A drawer is a panel that opens below a Table component row or a List item. The drawer displays additional data, either from the component's model (to provide more information about the selected record) or from a related object by using a context condition. Individual drawers can be opened and closed with the column or a row action that uses an action flow. You can open and close all drawers with a component interaction or action flow.

Using drawers allows end users to quickly scan a Table or List consisting of multiple records, then open drawers on individual rows/items to obtain a broader view of those records. Additionally, by opening two separate drawers, users can compare different related records simultaneously, something that is more difficult with other "container" elements, such as modals or sliding panels.

Drawers provide a lot of options:

  • Drawers on a Table (or List) of customer accounts could display invoices for each, or service orders.
  • Drawers on a Table cataloging products might give updated information about the product's supply chain.
  • A List of customer support tickets might use a drawer to track each action taken to resolve the complaint, and the associated in-house handoffs between service providers.

Context considerations

Drawers act as context containers that display records related to the row from which they are opened. Each drawer has a default context variable, drawer_context, mapped to ID of the clicked row.

If your scenario requires more specific filtering, you can define additional context variables. These variables can then be referenced by the models and components within the drawer, ensuring they display the exact subset of data you need.

For more information, see Context .

Add a drawer

  1. Click on the Table component or List item.
  2. In the Properties panel, expand Drawers and click Add drawer.
  3. If desired, toggle on Use column to open and close drawer. A chevron-right displays next to the horizontal list of fields on the Table. This provides access to the Drawer. This option is toggled on by default. If this option is not toggled on, the column is hidden, but the drawer still exists.

  4. If you are using the column to open and close the drawer and you want to select a different icon to display next to the list of fields, click More options next to the icon, select Edit, and select a different icon.

Configure actions to open/close drawers

Configure properties

Click on the drawer on the canvas or the index to open its properties.

Remove a drawer

Complete one of the following actions to remove an existing drawer:

  • Right-click on the drawer in the Index and select Remove.

  • Right-click on the drawer in the Index and press Delete (Mac) or Backspace (PC).

  • Expand the Drawer properties and click Remove drawer.

  • Select the drawer and then click the Delete icon on the component tool bar.

If the drawer contains components and it is deleted, all components inside the drawer will also be deleted.

Troubleshooting