This give the possibility to add a title/description/color name to predefined colors, often clients ask for that if they have to follow some kind of corporate style guide...
rather simple change, it is now possible to specify the swatches option like that:
backwards compatibility is of course there as it now can deal with objects if passed, otherwise it will just work like before.
If an object like above is passed the description/text/name whatever we want to call it will be added as a simple title attribute to the predefined color swatches in the picker and will be shown on mouseover (stay a little longer over it, nothing changed there in the default browser behaviour).
This give the possibility to add a title/description/color name to predefined colors, often clients ask for that if they have to follow some kind of corporate style guide...
rather simple change, it is now possible to specify the swatches option like that:
backwards compatibility is of course there as it now can deal with objects if passed, otherwise it will just work like before.
If an object like above is passed the description/text/name whatever we want to call it will be added as a simple title attribute to the predefined color swatches in the picker and will be shown on mouseover (stay a little longer over it, nothing changed there in the default browser behaviour).