Usage
Your not from the past :
npm install zyll/yacp
yacp deps :
jquery, backbone and underscore should be resolved via require
Exemple
<p id="color">
<span class='color'></span>
<input placeholder='Color...'/>
</p>
require('backbone.yacp')
var users = [];
var $el = $('#color');
var color = new Yacp.Input({
el: $el,
users: users,
input: $el.find('input'),
color: $el.find('.color'),
minicolors: {
opacity: true
}
});
color.render();
color.on('select', function(color) {
$('#myColor').css('background-color', color).text(color);
});
Developers
Dependencies
- node
- grunt
custom ui color picker fallback on jquery minicolors.
Install
Run npm install && npm test
Testing
Run grunt
to transpile and execute the specs.
You can watch for file modfication with grunt watch
.
Credits
Copyright (c) 2013 af83
Released under the MIT license