Speed Dial
A material design - floating action button with speed dial
\u0000\n\n\n\n\n\n\nVaadin 14 Java integration of @polymer/paper-fab-speed-dial. \n\nFeatures \n\u2B50 Floating menu bar \n\u2B50 Build in support of Vaadin Icons \n\u2B50 Backdrop to darken the background on open \n\u2B50 Setters for all 11 CSS properties \n\u2B50 Server side ClickListener \n\u2B50 Server side close
and open
actions \n\u2B50 Up to date Polymer 3.0 \n\u00A0 \nAdd it as dependency - It's available on the Central Maven Repository:\n xml\n<dependency>\n <groupId>io.github.tobsef</groupId>\n <artifactId>speed-dial</artifactId>\n <version>1.1.4</version>\n</dependency>\n
\nCurrent Version: 1.1.4
\nPlease make sure you use the current version from Maven. Don't use the outdated "install with zip" from vaadin directory. The file upload on the Vaadin directory is broken!\n\nAdd it to your View:\n java\nSpeedDial speedDial = new SpeedDial();\nspeedDial.addMenuItem(\"Copy\", VaadinIcon.COPY, e -> Notification.show(\"Clicked Copy\"));\nspeedDial.addMenuItem(\"Print\", VaadinIcon.PRINT, e -> Notification.show(\"Clicked Print\"));\nspeedDial.setBackdrop(true);\nadd(speedDial);\n
\n \n\u00A0 \n### \uD83C\uDFA8 Theming\n\nSpeedDial\n\n|Style|Method|\n|---|---|\n|setColor(color)
|The background color of the main Action Button|\n|setIconColor(color)
|The icon color of the main Action Button|\n|setColorFocus(color)
|The background color of the Floating Action Button when focused|\n|setColorClose(color)
|The background color of the Floating Action Button when opened|\n|setColorCloseFocus(color)
|The background color of the Floating Action Button when opened and focused|\n|setPositionMode(position)
|The type of positioning method used for the Floating Action Button (default: absolute)|\n|setMarginRight(marginRight)
|Margin to the right of the screen (default: 16px)|\n|setMarginBottom(marginBottom)
|Margin to the bottom of the screen (default: 16px)|\n\nSpeedDialAction\n\n|Style|Method|\n|---|---|\n|The icon color of the Floating Action Button|\n|setColorActionLabelText(color)
|The text color of label|\n|setColorActionLabel(color)
|The background color of label|\n|setColorAction(color)
|The background color of the Floating Action Button|\n|setColorActionFocus(color)
|The background color of the Floating Action Button when focused|\n\u00A0 \n\nLicense: Apache 2
Sample code
SpeedDial speedDial = new SpeedDial(); speedDial.addMenuItem("Copy", VaadinIcon.COPY, e -> Notification.show("Clicked Copy")); speedDial.addMenuItem("Print", VaadinIcon.PRINT, e -> Notification.show("Clicked Print")); speedDial.setBackdrop(true); add(speedDial);
Links
Compatibility
Was this helpful? Need more help?
Leave a comment or a question below. You can also join
the chat on Discord or
ask questions on StackOverflow.
Version
Added support for all 11 CSS properties:
setColor(color)
setPositionMode(position)
setMarginRight(marginRight)
setColorActionLabelText(color)
setColorAction(color)
...
- Released
- 2020-01-15
- Maturity
- STABLE
- License
- Apache License 2.0
Compatibility
- Framework
- Vaadin 14+
- Polymer 2.0+
- Browser
- Firefox
- Opera
- Safari
- Google Chrome
- iOS Browser
- Android Browser
- Internet Explorer
- Internet Explorer
- Windows Phone
- Microsoft Edge
Speed Dial - Vaadin Add-on Directory
A material design - floating action button with speed dialOnline Demo
View on GitHub
Speed Dial version 1.1.0
Added support for all 11 CSS properties:
* `setColor(color)`
* `setPositionMode(position)`
* `setMarginRight(marginRight)`
* `setColorActionLabelText(color)`
* `setColorAction(color)`
...