toolbarjs
v2.4.17
Published
npm install a toolbar for your browser
Downloads
68
Readme
toolbarjs
You can install toolbarjs as a node module
npm install toolbarjs
You can also install toolbarjs as a jspm dependency
jspm install npm:toolbarjs
Then in your project
import toolbarjs from 'toolbarjs'
let buttons = [
{
label: 'Foo',
click: event => {
console.log('Foo was clicked.')
}
},
{
label: 'Bar',
click: event => {
console.log('Bar was clicked.')
}
}
]
let toolbar = toolbarjs(
'rgba(22, 120, 150, 0.62)', // color
'top', // location: top, bottom, left, or right
buttons // Array of button objects
)
console.log(toolbar)
###Using Icons
Include an Icon Library e.g Font Awesome in your library.
Then set your button's label like this
label: '<i class="fa fa-plus"></i>'