Skip to content
MyAppBuilder
StableLayoutVersion 1

Drawer

Overview

A panel that slides in from the right or left edge when its "open" state is switched on. Ideal for details, filters or forms that should sit beside the page rather than replace it.

A side panel that slides in when its state 'open' is true.

When to use

  • Record details that slide in when a table row is clicked.
  • A filter panel on a product list.
  • "Add item" form beside an order while you keep seeing the order.
  • A help panel with instructions.

When not to use

  • The panel content is a full page reused from several places: create a page with page type Drawer and open it with the Open drawer action (it accepts parameters such as the record id).
  • You need a short centred confirmation: use Modal.

Quick start

  1. Drag Drawer onto the page; it shows inline in the editor and hidden in preview.
  2. Set Title and Side (right or left) in the Content tab, then drop content inside.
  3. On a button (or a table's On Row Click), add Set state → Component state → this drawer → key open → value true.
  4. Add a close button inside with Set state → open → false, or rely on the X, Escape or clicking the backdrop.

Layout rules

  • Can contain any component.
  • Can be placed in any container (page, section, card, row, column, grid…).

Properties

Titletext

Header text of the drawer. Can be bound, e.g. {{component.<tableId>.selectedRecord.name}}.

Default: Details

Sideselect

Edge the drawer slides in from.

Options: right, left

Default: right

Data binding

Properties that can use dynamic data: Title.

Events

On open
Runs when the drawer opens. Use it to Refresh data in the drawer.
On close
Runs when the drawer is dismissed by any means. Use it to refresh a table behind the drawer or reset a form.

Actions

Open the Actions tab in the inspector, pick an event and add actions such as Go to page, Create record or Show message. Actions run in order; data-changing actions run on the server with the signed-in user's permissions.

Other components can read this component's open from the Data Picker → Component state.

Responsive behavior

The drawer is 440 px wide on desktop and takes the full screen width on phones; content scrolls inside it.

Permissions

Permissions on the drawer apply to its content; restrict the trigger button too when the feature is role-specific.

Accessibility

  • Rendered as a dialog with the title as its accessible name; Escape closes it.

Examples

Filters drawer

Example
Drawer (Title: Filters, Side: left)
  Select "Status", Date range "Created"
  Button "Apply" → Refresh data → Orders table, then Set state → open → false

Trigger: Icon button "SlidersHorizontal" → Set state → Component state → Drawer → open → true

Common patterns

  • Open the drawer from a Table's On Row Click and show the selected record inside.
  • Use a left drawer for navigation on mobile when there is no room for a Sidebar.

Limitations

  • Nesting: can contain any component. Can be placed in any container (page, section, card, tab, accordion item, step, modal, drawer…). It can only be opened from the page it is placed on.
  • The open state resets when the page reloads.
  • Drawer pages (page type Drawer) are opened with Open drawer / closed with Close drawer and can carry parameters — a different feature from this component.

Troubleshooting

The drawer opens but shows old data.

Why: Data inside is only loaded once.

Fix: Add a Refresh data action to the drawer's On Open event.

Related

Was this helpful?