- Notifications
You must be signed in to change notification settings - Fork19
Angular Material FAB speed dial
License
Ecodev/fab-speed-dial
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
This is a FAB speed dial component for Angular Material.
See the component in action onthe demo page.
- Install the library:
yarn add @ecodev/fab-speed-dial
- In your standalone components add the following to the
imports
array:EcoFabSpeedDialComponent
EcoFabSpeedDialTriggerComponent
EcoFabSpeedDialActionsComponent
The following is an example of a minimal template. Either implement adoAction()
,or adapt the bindings to your needs:
<eco-fab-speed-dial><eco-fab-speed-dial-trigger><buttonmat-fab(click)="doAction('trigger')"><mat-iconfontIcon="menu"/></button></eco-fab-speed-dial-trigger><eco-fab-speed-dial-actions><buttonmat-mini-fab(click)="doAction('action1')"><mat-iconfontIcon="add"/></button><buttonmat-mini-fab(click)="doAction('action2')"><mat-iconfontIcon="edit"/></button><buttonmat-mini-fab(click)="doAction('action3')"><mat-iconfontIcon="search"/></button></eco-fab-speed-dial-actions></eco-fab-speed-dial>
Property | Type | Default | Description |
---|---|---|---|
open | boolean | false | Indicates if this FAB Speed Dial is opened |
direction | up ,down ,left orright | up | The direction to open the action buttons |
Property | Type | Default | Description |
---|---|---|---|
spin | boolean | false | Enables the rotation of the trigger action when the speed dial is opening |
Additionally to spin property, add class "spin180" or "spin360" on html content inside ofeco-fab-speed-dial-trigger
tag to activate rotation on a specific element.
In case of buttons, the icon should rotate not the whole button (box-shadow would rotate too).
The most useful commands for development are:
yarn dev
to start a development serveryarn build-demo
to build the demo locally (it will be published automatically by GitHub Actions)git tag -a 1.2.3 && git push
to publish the lib to npm (via GitHub Actionsrelease
job)
This lib was originally based onangular-smd,and its various forks, itself based onAngularJS FAB Speed Dial.
About
Angular Material FAB speed dial
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Contributors10
Uh oh!
There was an error while loading.Please reload this page.