google-code-export / jpicker

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

not keeping the # in the input... by design, but why #23

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Use a binded input field with the value "#FFCC00"
2. change the color using jPicker
3. now the input no longer has a #FFCC00 value, instead its FFCC00

What is the expected output? What do you see instead?

#FFCC00 in hex format, instead we see FFCC00 which is more commonly known

What version of the product are you using? On what operating system?

1.1.6 on MacOS

Please provide any additional information below.

I am not sure that stripping the # from the input field of the color picker is 
the best and most common way to display the color value. Most people used to 
hex colors are used to putting in # before the 6 digits.

It would be nice if it could have an option to keep the # or delete it, i am 
using the input field to set colors in my page, and when the value gets the # 
stripped off it doesn't allow and easy change without first doing a "prepend #" 
to string, then pass out to attribute.

Original issue reported on code.google.com by joelgran...@gmail.com on 9 Jun 2011 at 8:07

GoogleCodeExporter commented 9 years ago
Another vote: An option to keep the hash symbol would be welcome

Original comment by google_m...@byte-design.co.uk on 15 Jun 2011 at 2:32

GoogleCodeExporter commented 9 years ago
Chalk up another vote for an option to keep the hash on the color hex.

Original comment by cobrabr on 26 Apr 2012 at 10:48

GoogleCodeExporter commented 9 years ago
+1 here.. # should be optionally able to be used in the inputs

Original comment by jeremyBa...@gmail.com on 16 Aug 2012 at 3:28

GoogleCodeExporter commented 9 years ago
I will consider a setting in any future version. The original reason it was not 
included is for simplicity. Those users that do not require the "#" symbol, 
such as for setting a backing integer through server-side code, would not have 
to "trim" the "#" off the text data, while those looking for it can merely 
prepend the "#". With mousemove (drag) events firing multiple times per second, 
the "trim" is slower than merely prepending to a final string.

Original comment by christop...@gmail.com on 5 Nov 2012 at 5:39

GoogleCodeExporter commented 9 years ago
Where and how do I prepend # to the input?

Thanks.

Original comment by cont...@juipo.com on 28 Aug 2013 at 6:32

GoogleCodeExporter commented 9 years ago
I just started using the jpicker too.. which is on off the better color pickers 
out there... but I too need the # and it is not enough that I just prepend it. 
My website is highly dynamic and needs correct color format with the # in 
front. This bug was reported in 2011.. what is the status today 2014?

Original comment by marino.peter on 29 Jun 2014 at 3:14