jquery-simplecolorpicker icon indicating copy to clipboard operation
jquery-simplecolorpicker copied to clipboard

Disable Color Picker

Open cankayacan opened this issue 12 years ago • 5 comments

Is there any possibility to disable the color picker? I could not figure out how to do it.

Setting disabled attribute does not work: <select name="colorpicker" disabled>

cankayacan avatar Apr 20 '13 11:04 cankayacan

You can destroy it instead:

$('select[name="colorpicker"]').simplecolorpicker('destroy');

tkrotoff avatar Apr 20 '13 13:04 tkrotoff

Destroying the color picker replaces the color icon with a standard html combobox. That's not I want to do. I want to disable the control so that the picker is not available. Later on, the picker could be enabled again. Is it somehow possible with the current implementation?

cankayacan avatar Apr 20 '13 14:04 cankayacan

I see what you want: if attribute disabled is present, grey out the inline colors/disable the picker + disable click I won't have time in the next few weeks to implement this feature.

tkrotoff avatar Apr 23 '13 18:04 tkrotoff

I would like this same feature.

scharfmn avatar Nov 12 '14 07:11 scharfmn

this worked for me $('.simplecolorpicker').css("pointer-events", "none");

soongsta avatar Aug 29 '16 05:08 soongsta