Does anyone know whether it's possible to de-select a palette. We use this package to allow editors to select a gradient to apply to banners. Sometimes however when a banner is changed they'll want to remove the gradient.
The underlying html of the palettes are using radiobuttons, which are not supposed to be left blank.
It could use checkboxes, but I don't know if the is any scenario, where one want to select multiple palettes.
A solution could be to define a "No palette", which use a color (or multiple colors) of your choice. Then in your output you can set the color/palette/gradient only if one is chosen and does not match alias of "No palette", e.g. "noPalette".
Deselecting a palette
Does anyone know whether it's possible to de-select a palette. We use this package to allow editors to select a gradient to apply to banners. Sometimes however when a banner is changed they'll want to remove the gradient.
Is it possible to de-selected a palette?
Hi..
The underlying html of the palettes are using radiobuttons, which are not supposed to be left blank.
It could use checkboxes, but I don't know if the is any scenario, where one want to select multiple palettes.
A solution could be to define a "No palette", which use a color (or multiple colors) of your choice. Then in your output you can set the color/palette/gradient only if one is chosen and does not match alias of "No palette", e.g. "noPalette".
/Bjarne
Thanks Bjarne. That solution works.
is working on a reply...