A flexible fixed-action-button menu. Only usable as a mixin for other ceri components/widgets.
npm install --save-dev ceri-fab ceri-tooltip ceri-icon
setup webpack for ceri-icon.
Include the icons you need.
...
mixins: [
require("ceri-fab")(require("ceri-fab/materialize"))
]
...
fab:
rename:
if: -> true
onClick: "renameClick"
data: ->
text:
rename: "Rename" # tooltip text
icon:
rename: "ma-mode_edit" # icon (uses ceri-icon)
classes:
renameButton: "green"
methods:
renameClick: ->
-
setup ceri-materialize
-
load theme file
require("ceri-fab")(require("ceri-fab/materialize"))
For example see dev/materialize
.
Clone repository.
npm install
npm run dev
Browse to http://localhost:8080/
.
- use ceri-materialize@2
Copyright (c) 2017 Paul Pflugradt Licensed under the MIT license.