Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • suzyb 476 posts 934 karma points
    Nov 01, 2016 @ 19:17
    suzyb
    0

    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?

  • Bjarne Fyrstenborg 1286 posts 4060 karma points MVP 8x c-trib
    Nov 01, 2016 @ 22:11
    Bjarne Fyrstenborg
    100

    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".

    enter image description here

    /Bjarne

  • suzyb 476 posts 934 karma points
    Nov 21, 2016 @ 14:25
    suzyb
    0

    Thanks Bjarne. That solution works.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies