a simple fixed-action-button.
npm install --save-dev vue-fixed-action-buttonor include build/bundle.js.
# in your component
components:
"fab": require("vue-fixed-action-button")
# or, when using bundle.js
components:
"fab": window.vueComps.fab<fab style="bottom:20px;right:20px">
<button slot="fab">hover me</button>
<li><button>Action 1</button></li>
<li><button>Action 2</button></li>
</fab>see dev/ for examples.
| Name | type | default | description |
|---|---|---|---|
| class | Array or Object | ["fixed-action-btn"] | class of the div |
| not-dismissable | Boolean | false | will be not close on click outside of menu (only with click-to-toggle) |
| close-on-click | Boolean | false | will be closed on click inside of menu |
| click-to-toggle | Boolean | false | opens on click instead of hover |
| is-opened | Boolean | false | (two-way) set to open / close |
| transition-in | function | no animation | animation for the list. Argument: {el,cb} |
| transition-out | function | no animation | animation for the list. Argument: {el,cb} |
| Name | description |
|---|---|
| close | when received, will close |
| before-open | will be called before open animation |
| opened | will be called when opened |
| before-close | will be called before close animation |
| closed | will be called when closed |
Clone repository.
npm install
npm run devBrowse to http://localhost:8080/.
Copyright (c) 2016 Paul Pflugradt Licensed under the MIT license.