Skip to content
MyAppBuilder
StableGuide

Modal and drawer navigation

Modal and drawer pages open on top of the current page instead of replacing it: a modal in the middle of the screen, a drawer sliding in from the side. They are real pages with their own components and access rule, but navigating to them does not change the address. The Storyboar

Modal and drawer pages open on top of the current page instead of replacing it: a modal in the middle of the screen, a drawer sliding in from the side. They are real pages with their own components and access rule, but navigating to them does not change the address. The Storyboard shows them as nodes with a modal or drawer chip, lets you convert any page with Open as, and treats them specially in reachability checks.

When to use

  • Modal: add or edit a record, confirm an action, a short form, a quick look at details.
  • Drawer: filters, a detail panel next to a list, a cart, settings that should not hide the page underneath.
  • Standard page: anything long, anything that needs its own address, anything in the menu.

Create or convert

  • New page dialog → Type: Modal or Drawer. Modal and drawer pages are created without the app header.
  • Existing page: select its node, set Open as to Modal or Drawer (or back to Page). The home page is always a standard page and cannot be converted.

Open and close

Navigations into a modal or drawer page are ordinary edges whose target type is modal or drawer. Create them like any other navigation (drag-to-connect, Link to page, or Build → Actions → Open modal page / Open drawer page). Go to page pointing at a modal page opens it as an overlay too. Pass route parameters the same way as for dynamic pages, for example :id to edit a specific record.

Inside the overlay, close it with a Close modal / Close drawer action — typically on a Cancel button and after a successful save — or with the overlay's own close control. Query parameters are not available for overlays; use route parameters or state.

What the Storyboard does with them

  • Modal and drawer nodes carry a modal / drawer chip and can be grouped and laid out like other pages.
  • They are never dead ends: a modal without outgoing navigation is normal.
  • They never appear in the menu, so they are reachable only through edges; a modal nothing opens is reported as unreachable.
  • Open as on an edge changes how a page target opens for that one navigation; Open as on the node changes the page's type for every navigation.

Example: add a job from the list

Example
Jobs (standard)                                 New job (modal)
┌─────────────────────┐   "Add job" · Click     ┌────────────────────────┐
│ Table of Jobs       │ ──────────────────────▶ │ Form → Create record   │
│ Button "Add job"    │                         │ onSuccess: Close modal │
└─────────────────────┘                         └────────────────────────┘

The business components Customers, Job Manager and the other managers build exactly this: a table, an Add button and a modal with the form.

Common mistakes

  • Expecting the browser back button to close a modal: overlays are not history entries; add a close action.
  • Refreshing with a modal open: the page underneath reloads without the overlay. Use a standard page for anything that must be shareable.
  • Putting the whole app's navigation in a drawer: drawers close on navigation; use the sidebar style in Theme instead.

Related

Was this helpful?