Skip to content
This repository has been archived by the owner on Aug 9, 2022. It is now read-only.

Disable Color Picker #11

Open
cankayacan opened this issue Apr 20, 2013 · 5 comments
Open

Disable Color Picker #11

cankayacan opened this issue Apr 20, 2013 · 5 comments

Comments

@cankayacan
Copy link

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>

@tkrotoff
Copy link
Owner

You can destroy it instead:

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

@cankayacan
Copy link
Author

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?

@tkrotoff
Copy link
Owner

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.

@scharfmn
Copy link

I would like this same feature.

@soongsta
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants