Dave Perrett

jQuery SimpleColor Plugin Hits Version 1.0

announcement, javascript, jquery, plugin, programming, web

A couple of weeks ago someone commented on the SimpleColor plugin with a nice suggestion - adding the selected color as text inside the color selection button. I finally got around to implementing this last night, and added a couple of extra options to support this :

1
2
3
4
5
6
7
8
9
10
11
displayColorCode:   Display the color code (eg #333333) as text inside the
                    button. true or false.
                     default value: false

colorCodeAlign:     Text alignment used to display the color code inside
                    the button. Only used if 'displayColorCode' is true.
                     default value: 'center'

colorCodeColor:     Text color of the color code inside the button. Only
                    used if 'displayColorCode' is true.
                     default value: '#FFF'

The finished result looks something like this :

Since there’s been no bug reports for a while and the plugin does basically what I need, I also took the opportunity to upgrade it from version 0.9.0 to 1.0.0.

As always, if you come across any problems please create a ticket and we’ll try to get it fixed as soon as possible.