bgrins / spectrum

The No Hassle JavaScript Colorpicker
https://bgrins.github.io/spectrum/
MIT License
2.32k stars 588 forks source link

howto use the CONTAINER method #411

Open schultz-it-solutions opened 8 years ago

schultz-it-solutions commented 8 years ago

Hey Brian, I am using your (brilliant) colorpicker in a Joomla extension (called jDBexport). I would like to add some custom text to the end of the first row of the color palette. I figure I would need to call the "container" method and add a custom [span] to the parent [div class="sp-cf sp-palette-row sp-palette-row-0"] (in my case, this row ALWAYS contains only ONE "data-color" span, so I have enough space.

Could you give me a short example of how to do this please (or suggest a better way). Best regards ruediger