Dependencies
This module depends on :
- Twitter bootstrap CSS
- AngularJS
- Font awesome
Install
Download library or install it through bower
bower install angular-toolbar --save
Call CSS abd JS scripts in your HTML
And load module in your angular app
var myApp = angular;
This module can be used as element or attribute
Attributes can be passed throught ng-model
$scopemy_toolbar = 'bid' : 'example-1' 'bstyle' : 'btn-danger' 'event' : 'mouseover' 'size' : 'btn-lg' 'icon' : 'fa fa-times' 'toolbar' : 'bid' : 'example-1' 'position' : 'bottom' 'animation' : 'animate-flip' 'size' : 'btn-lg' 'alignment' : 'normal' 'adjustment' : 10 'tools' : icon : "fa fa-plus" bstyle : "btn-primary" click : "doSomething('tata 1')" icon : "fa fa-times" bstyle : "btn-danger" click : "doSomething('tata 2')" icon : "fa fa-times" bstyle : "btn-danger" click : "doSomething('{{var_chelou.yoyo}}')"
or via HTML data attributes
or through a mix
scopemytoolbtn1 = 'bid' : 'example-1' 'bstyle' : 'btn-danger' 'event' : 'mouseover' 'size' : 'btn-lg' 'icon' : 'fa fa-times'; $scopemytoolbar1 = 'bid' : 'example-1' 'position' : 'bottom' 'animation' : 'animate-flip' 'size' : 'btn-lg' 'alignment' : 'normal' 'adjustment' : 10 'tools' : ;$scopemytoolbarbtn1 = icon : "fa fa-plus" bstyle : "btn-primary" click : "doSomething('tata 1')";$scopemytoolbarbtn2 = icon : "fa fa-times" bstyle : "btn-danger" click : "doSomething('tata 2')";$scopemytoolbarbtn3 = icon : "fa fa-times" bstyle : "btn-warning" click : "doSomething('{{some_variable.some_property}}')";
Contributors
Build by Hugo Maugey