kushal45 / jpicker

Automatically exported from code.google.com/p/jpicker
0 stars 0 forks source link

Allow to turn off the change of the text color #7

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
It would be nice if it would be possible to turn off that the text color is 
changed and it is used whatever is defined.

Reason behind that is I use the color picker to allow users to choose 
background colors and it would be nice to see in the color picker input 
field how it will look later with the real text color.

Otherwise great work, looked at a lot color pickers and this is by far the 
best.

Original issue reported on code.google.com by thorsten...@googlemail.com on 22 Apr 2010 at 1:50

GoogleCodeExporter commented 8 years ago
I will create an option in the next version to address this to prevent the text 
color 
or the backgroud color from updating in the input box. Until this new version, 
I 
recommend just attaching the jPicker object to a <span></span> element next to 
your 
input box and register on the liveCallback function to update the 
backgroundColor of 
the input box. Also register an onKeyUp event on the input box and tell it to 
change 
the hex color to its value. That will be a good workaround until the next 
version.

Original comment by christop...@gmail.com on 6 May 2010 at 9:34

GoogleCodeExporter commented 8 years ago

Original comment by christop...@gmail.com on 27 Jun 2010 at 6:19

GoogleCodeExporter commented 8 years ago
Version 1.1.3 adds a updateInputColor option with a default value of true. Set 
this to false and then you can insert your own color logic or none at all.

Original comment by christop...@gmail.com on 11 Aug 2010 at 8:56