ion-action-button
This is a small AngularJS module that adds a FAB button to your Ionic 1.x application
The $actionButton removes itself from the DOM when the view changes.
Install
npm install ion-action-button
Then include the .css
and js
. Add the script tags or use a module loader.
Webpack:
Then include the angular module dependency
angular
API
$actionButton.create(options)
- returns an object with the methods below:
show()
- Shows the button. Return promise.
hide()
- Hides the button. Return promise.
remove()
- Remove the button. Return promise.
visible()
- Return boolean. True if visible, false if not.
Example
Thanks
This code was originally forked from Fernando
's https://market.ionicframework.com/plugins/material-action-button. It has been rewritten, addressing some bug, with ES6
, ng-annotate
, bundled with webpack
. Thank you the great start Fernando
.