Skip to content
All 183 components, $149 onceSee plans

Drawer for Power Apps

A drawer is a panel that opens over the current screen from the right or the bottom edge, with a dimmed area behind it, so the user can act on a record without leaving the list. Every PowerLibs drawer pastes as three controls: a demo trigger button, a scrim over the whole screen that closes the drawer when tapped, and the panel, declared last so it draws on top. One context variable per drawer decides whether the scrim and the panel are visible. Form Drawer and Bottom Sheet are free; the other four need a paid plan.

Pick a variant

  • Bottom SheetFreeClassic, Modern

    A quick entry on a phone: hours, a note, a status change

    Settings: Trigger, Title, Description, up to five fields (text, multiline, dropdown, date), Save and Cancel texts, parts (grab handle, close icon)

  • Form DrawerFreeClassic, Modern

    The new-record or edit side panel of a list screen

    Settings: Trigger, Title, Description, up to six fields (text, multiline, dropdown, date), Save and Cancel texts, parts

  • Detail DrawerPaidClassic, Modern

    The selected approval, ticket or order opened next to its list

    Settings: Trigger, Reference, Status, Title, Person, label and value rows, Notes, two decision buttons, parts

  • Filter DrawerPaidClassic, Modern

    The filter panel of a list: chips, an owner, a date range

    Settings: Trigger, Title, two chip rows (up to eight chips each), dropdown options, date range label, Reset and Apply texts, parts

  • Action SheetPaidClassic, Modern

    Edit, duplicate, delete on a record, the phone way

    Settings: Trigger, what it is about, up to six actions with icon and a destructive flag, Cancel text, parts

  • Comments DrawerPaidClassic, Modern

    The conversation on a ticket, approval or task

    Settings: Trigger, Title, Description, demo comments (up to eight), composer placeholder and Send text, parts

Paid means any paid plan (which plan do I need?). Classic and Modern are the two Power Apps control sets you can pick from the Copy YAML button. Open the category in the library: Drawer.

To copy a variant into Power Apps Studio, follow Getting Started.

After you paste

Each drawer has its own context variable: varShowFormDrawer, varShowBottomSheet, varShowDetailDrawer, varShowFilterDrawer, varShowCommentsDrawer, varShowActionSheet. Names follow your prefix settings. The trigger sets it to true; the scrim, the close icon and the footer buttons set it to false. Two buttons keep the panel open: Reset in the Filter Drawer and Send in the Comments Drawer. To open a drawer from your own control, for example a row in a gallery:

UpdateContext({ varShowDetailDrawer: true })

A context variable lives on one screen, so paste the drawer on the screen that opens it. Delete the demo trigger button once your own control opens the drawer.

Form Drawer and Bottom Sheet hold one real input control per field you add in Settings: txtFormField1 to txtFormField6 in the Form Drawer, txtSheetField1 onwards (up to five) in the Bottom Sheet. Dropdowns and date pickers carry the same txt prefix. Nothing is kept in a collection, and the pasted Save button (btnFormDrawerPrimary or btnBottomSheetPrimary) only closes the drawer. Put your Patch in its OnSelect and read the controls:

Patch(Expenses, Defaults(Expenses), {
  Title: txtFormField1.Text,
  Category: txtFormField3.Selected.Value,
  ExpenseDate: txtFormField4.SelectedDate
});
UpdateContext({ varShowFormDrawer: false })

In the Modern YAML a text input has no Text property, so write txtFormField1.Value there.

Filter Drawer keeps the chosen chips in two collections, colFilterStatus and colFilterPriority, one record { value: "Open" } per chip. Your gallery reads them directly, and an empty collection means no filter on that row:

Filter(Tickets,
  (IsEmpty(colFilterStatus) || Status in colFilterStatus.value),
  (IsEmpty(colFilterPriority) || Priority in colFilterPriority.value),
  Created >= txtFilterFrom.SelectedDate
)

The list follows every tap on a chip, so the Apply button only closes the panel. Reset clears both collections and resets the dropdown and the two date pickers.

Comments Drawer shows the collection colDrawerComments and its composer adds to it. The trigger seeds three demo comments; once the gallery reads your own data source, delete that Collect.

Detail Drawer and Action Sheet show demo values. Point the labels at your gallery's selected record, for example galRequests.Selected.Title on lblDetailTitle, where galRequests is your own gallery. The two decision buttons and every action button (btnAction1 and so on) only close the panel, so put your own formula into their OnSelect in front of that.

Good to know

  • Power Apps has no z-index; what is in front is decided by the order in the Tree view. If a control you add later covers the panel, move the scrim and the panel to the top of the screen's list.
  • The right-hand panels are Min(width, Parent.Width) wide, so on a phone they fill the screen. The Bottom Sheet and the Action Sheet always span the screen width.
  • Every drawer offers Classic Controls and Modern Controls in the Copy YAML menu, with the same layout and the same names apart from two prefixes. The scrim is a button in Classic (btnFormDrawerScrim) and a Rectangle in Modern (recFormDrawerScrim). The close icon is icoFormDrawerClose in Classic and an SVG image, imgFormDrawerClose, in Modern, since Power Apps has no modern icon control. The Modern YAML uses the modern Button, Text, Text input, Dropdown and Date picker, and none of its controls has a Classic/ type.
  • Switch parts off in Settings before copying rather than deleting controls after: a part that is off is not generated, and the sections below it move up.
  • The panel appears in place as soon as its variable is true. The YAML has no slide animation.
  • In the Filter Drawer, txtFilterFrom starts 30 days back and txtFilterTo at today (Classic and Modern), so a formula that reads them narrows the list right away, while lblFilterCount only counts chips.

Open the category at Drawer. For a dialog that blocks the screen until the user answers, see Modals; for a form inside a tile, see Cards.

Drawer for Power Apps | PowerLibs