Output Color Code as Hex in 5.7 Block View
Permalink
I am working on a block for 5.7 that uses the "hex" format for color codes as a hex (ex. #000000), instead of the RGB format.
The picker works just fine, but only renders in the RGB format. Is there a way to output the color code in hex format in the block view?
The picker works just fine, but only renders in the RGB format. Is there a way to output the color code in hex format in the block view?
You can change the preferred format in the options array.
http://bgrins.github.io/spectrum/#options-preferredFormat...
Example: