Speed Dial for Power Apps
A speed dial is a floating button in the bottom-right corner of a screen that opens a few smaller action buttons when tapped; the plus sign turns into an X while it is open, and a tap anywhere else closes it. Reach for one when a screen has a few actions users take often, such as a new request or logging hours, and you want them out of the way until needed. The dials come round, square, with labels, or opening to the left; the Floating Action Button is a single action with no menu. Floating Action Button is free, the dials need a paid plan, and all of them generate Classic control YAML only.
Pick a variant
- Floating Action ButtonFree
One action and no menu: round with an icon, or extended with a text, and an optional red badge with a count
Settings: Red badge with a count, Color, Size (44 to 80 px), Extended (icon and text), Text, Icon, Badge count
- Animated Speed DialPaid
Round actions that rise above the button, labels off by default
Settings: Color, Size (44 to 80 px), Actions (up to 6): Label, Icon, Show labels beside the actions, Close after tapping an action, Dim the screen while open
- Square Speed DialPaid
The same dial with squared corners, for apps with a squarer look
Settings: Color, Size (44 to 80 px), Actions (up to 6): Label, Icon, Show labels beside the actions, Close after tapping an action, Dim the screen while open
- Labeled Speed DialPaid
The round dial with a label pill to the left of every action
Settings: Color, Size (44 to 80 px), Actions (up to 6): Label, Icon, Show labels beside the actions, Close after tapping an action, Dim the screen while open
- Horizontal Speed DialPaid
Actions open to the left of the button, with tooltips, when the space above is taken
Settings: Color, Size (44 to 80 px), Actions (up to 6): Label, Icon, Close after tapping an action, Dim the screen while open
| Component | Plan | What it is for | Settings you can change |
|---|---|---|---|
| Floating Action Button | Free | One action and no menu: round with an icon, or extended with a text, and an optional red badge with a count | Red badge with a count, Color, Size (44 to 80 px), Extended (icon and text), Text, Icon, Badge count |
| Animated Speed Dial | Paid | Round actions that rise above the button, labels off by default | Color, Size (44 to 80 px), Actions (up to 6): Label, Icon, Show labels beside the actions, Close after tapping an action, Dim the screen while open |
| Square Speed Dial | Paid | The same dial with squared corners, for apps with a squarer look | Color, Size (44 to 80 px), Actions (up to 6): Label, Icon, Show labels beside the actions, Close after tapping an action, Dim the screen while open |
| Labeled Speed Dial | Paid | The round dial with a label pill to the left of every action | Color, Size (44 to 80 px), Actions (up to 6): Label, Icon, Show labels beside the actions, Close after tapping an action, Dim the screen while open |
| Horizontal Speed Dial | Paid | Actions open to the left of the button, with tooltips, when the space above is taken | Color, Size (44 to 80 px), Actions (up to 6): Label, Icon, Close after tapping an action, Dim the screen while open |
Paid means any paid plan (which plan do I need?). Open the category in the library: Speed Dial.
To copy a variant into Power Apps Studio, follow Getting Started.
Animated, Square and Labeled differ only in shape and in whether Show labels beside the actions starts on (it does on Labeled). An action without a label pill shows its label as a tooltip.
After you paste
A dial arrives as several controls, not one container: an invisible full-screen button that closes the dial (the scrim, btnSpeedDialScrim), one small container per action (conSpeedDialAction1 and so on) and the main button conSpeedDialMain. The middle of each name is the variant: SpeedDial for Animated, then SquareDial, LabeledDial and HorizontalDial. The main button and the actions take X and Y from Parent.Width and Parent.Height, so the dial sits 24 px from the bottom-right corner on any screen size.
Each dial has two global variables. varSpeedDialOpen is true while the dial is open: btnSpeedDialMain flips it, and the actions and the scrim read it in Visible. varSpeedDialRun is a time stamp that makes the plus icon imgSpeedDialIcon play its turn again; you never touch it. The other dials use varSquareDialOpen, varLabeledDialOpen and varHorizontalDialOpen. Names use your prefix settings.
Every action has its own button, btnSpeedDialAction1 for the first. Its OnSelect holds a comment that names the action, then the line that closes the dial. Write your action above that line (NewRequestScreen is your own screen):
Navigate(NewRequestScreen);
Set(varSpeedDialOpen, false); Set(varSpeedDialRun, Text(Now(), "yyyymmddhhmmssfff"))
With Close after tapping an action off, that line is only false: replace it with your action.
A dial left open is still open when the user comes back to the screen. To start closed, put this in the screen's OnVisible:
Set(varSpeedDialOpen, false)
The Floating Action Button is one container, conFab, with icoFabIcon, the text lblFabText (while Extended is on) and a transparent button btnFab. It has no variables: put your action in the OnSelect of btnFab in place of false. A Badge count above zero adds conFabBadge at its top-right corner; for a live number, put a formula in the Text of lblFabBadgeText (Approvals is your own list):
Text(CountRows(Filter(Approvals, Status = "Waiting")))
Good to know
- Paste onto the screen, not into a container. The scrim fills its parent and positions are measured from the parent's bottom-right corner. Inside a container the dial sits in that container's corner, and a tap outside it does not close the dial.
- Keep it in front of the galleries and forms it floats over. The YAML lists the scrim first and the main button last, so the button stays above the scrim.
- Color and size are settings. The main button uses your brand color until you pick a Color. Size is the main button (56 px by default) and the action buttons are 78 percent of it. Positions are worked out from Size when you copy, so change it in Settings, not in Studio.
- Label pills are separate containers, such as
conLabeledDialAction1Labelwith the text inlblLabeledDialAction1LabelText. The width comes from the label's length when you copy (72 to 220 px), so widen it for a longer text. Horizontal Speed Dial has only tooltips, which show on hover. - Actions are fixed controls, not gallery rows. To add, remove or reorder them, change Settings and copy again.
- Two copies of one dial share its variables and open together: rename
varSpeedDialOpenandvarSpeedDialRunin one copy. Different variants do not clash. - Light and dark. Action buttons and label pills are white on the light theme and navy on the dark one.
- Settings and notes. Changing the settings needs any paid plan except the old Components subscription; on other plans the editor is read-only with an Unlock button. Every variant has notes.
Related
Open the category in the library: Speed Dial. Related guides: Buttons and Modals.