ons-speed-dial

Element that displays a Material Design Speed Dialog component. It is useful when there are more than one primary action that can be performed in a page. The Speed dial looks like a <ons-fab> element but will expand a menu when tapped.

Tutorial

Speed Dial

Tutorial contents will be added soon.

See also

Attributes

Name Type Description
modifier String The appearance of the component. Optional.
ripple If this attribute is defined, the button will have a ripple effect when tapped. Optional.
position String

Specify the vertical and horizontal position of the component. I.e. to display it in the top right corner specify “right top”. Choose from “right”, “left”, “top” and “bottom”.

Optional.
direction String Specify the direction the items are displayed. Possible values are “up”, “down”, “left” and “right”. Optional.
disabled Specify if button should be disabled. Optional.

Properties

Name Description
disabled Whether the element is disabled or not.
inline Whether the element is inline or not.
visible Whether the element is visible or not.

Methods

Signature Description
show() Show the speed dial.
hide() Hide the speed dial.
showItems() Show the speed dial items.
hideItems() Hide the speed dial items.
isOpen() Returns whether the menu is open or not.
toggle() Toggle visibility.
toggleItems() Toggle item visibility.
show()

Show the speed dial.

hide()

Hide the speed dial.

showItems()

Show the speed dial items.

hideItems()

Hide the speed dial items.

isOpen()

Returns whether the menu is open or not.

toggle()

Toggle visibility.

toggleItems()

Toggle item visibility.

Events

Name Description
open Fired when the menu items are shown.
close Fired when the menu items are hidden.
open

Fired when the menu items are shown.

Parameters
Name Type Description
close

Fired when the menu items are hidden.

Parameters
Name Type Description

Need Help?

If you have any questions, use our Community Forum or talk to us on Discord chat. The Onsen UI team and your peers in the community will work together to help solve your issues.

For bug reports and feature requests use our GitHub Issues page.