Purty-Picker icon indicating copy to clipboard operation
Purty-Picker copied to clipboard

dynamic ?

Open bakman2 opened this issue 10 years ago • 1 comments

How can I add the picker dynamically ? I can do it via hidden tags but thats not very nice.

Would it also be possible use the options like this:

el.colorpicker({
   format:'hsl', 
   input:'.mycolorinput', 
   color: '#eee', 
   etc
}) 

I know it would require some rewriting, but makes it more flexible.

bakman2 avatar Aug 10 '15 07:08 bakman2

you could change change into input the lightness will be updated when moving the range slider.

$lightnessInput.on('input', function() {
            setLightness($(this).val());
            updateColorInput();
        });

bakman2 avatar Aug 10 '15 08:08 bakman2