1.0.2 • Published 9 years ago
yoleth-themepicker v1.0.2
yoleth-themepicker
AngularJS directive to pick theme
##Usage
###Installation
$ npm install yoleth-themepicker.min.js###Registration
To be able to use the directive, you need to register the yoleth.themepicker module as a dependency:
angular.module('yourModule', ['yoleth.themepicker'
// other dependencies
]);###Directive The directive work with element level.
<yl-theme
yl-themes="themes"
ng-model="element.options.theme">
</yl-theme>Short doc for all of the attributes:
ng-model, the value to bind the switch toyl-themes, array of themes to show, with name and color, for exemple : $scope.themes = { name : 'blue', color : '#3F51B5'}, { name : 'red', color : '#D32F2F'}, { name : 'purple', color : '#6A1B9A'}, { name : 'green', color : '#43A047'}, { name : 'yellow', color : '#FFEB3B'}, { name : 'orange', color : '#FB8C00'}, { name : 'brown', color : '#795548'} ;