lauren / pick-a-color

an easy-to-use jQuery color picker for Twitter Bootstrap
http://lauren.github.com/pick-a-color/
MIT License
269 stars 89 forks source link

Disabled option #30

Closed seiyria closed 10 years ago

seiyria commented 10 years ago

It'd be great if there were a way to programmatically disable the slider.

lauren commented 10 years ago

@seiyria Interesting! Why would you want to disable the slider as opposed to not showing the gradients at all?

seiyria commented 10 years ago

@lauren Here's a mockup of what I'm developing right now: http://puu.sh/5p5Js.png

The idea is that there is a foreground color associated with the color picker, but most of the time it will be programmatically generated (as such, users have to go to a special effort to change them, as it is an unusual circumstance). So, it would disable the color picking capability unless the user specifically says otherwise.

Hopefully that makes sense.

lauren commented 10 years ago

I see. I'm not sure why you'd want to only disable the slider in this case. Wouldn't it be preferable to disable or hide the entire color picker input field?

seiyria commented 10 years ago

Err, my original title may have been mistaken. I would still like a preview of the color, just have the ability to choose a new one not be possible. Yes, it would be preferable to disable the field, though in this case hiding it is not ideal.

lauren commented 10 years ago

Got it. I will work on something for this.