Bootstrap Colorpicker is a modular color picker plugin for Bootstrap.
Progress and description here: https://github.com/farbelous/bootstrap-colorpicker/issues/241
focusout
firing before click is handled #198hexNumberSignPrefix
to allow hex color without initial hash #191Lots of bug fixes and improvements:
This fixes #161, fixes #186, fixes #184, fixes #183, fixes #182, closes #180, fixes #178, closes #172, fixes #87, fixes #127, closes #157, fixes #162, fixes #168, closes #153 and fixes #140 .
Happy Holidays! ?
Now it's possible to use the full Colorpicker
class API, using the jQuery plugin API.
Examples:
// Get the format property of the instance
var format = $('.colorpicker-element:first').colorpicker('format');
console.log(format); // "hex"
// Getting values only works for single elements, otherwise a jQuery object will be returned.
var format = $('.colorpicker-element').colorpicker('format');
console.log(format); // jQuery object
var value = $('.colorpicker-element').colorpicker('getValue');
console.log(value); // jQuery object
// Show all colorpickers (calls show() for all color pickers)
$('.colorpicker-element').colorpicker('show');
// Change color of all colorpickers to red (calls setValue('red') for all color pickers)
$('.colorpicker-element').colorpicker('setValue', 'red');