Copied to clipboard

Flag this post as spam?

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


  • Chris 92 posts 238 karma points
    Jan 22, 2015 @ 14:34
    Chris
    0

    Grid Prevalueeditors: deselect a setting

    Hey,

    I'm having another problem with the Grid prevalueeditors. The mark up of my settings looks like this:

     

    [
      {
        "label": "Hintergrundfarbe",
        "description": "Hintergrundfarbe wählen",
        "key": "class",
        "view": "radiobuttonlist",
        "applyTo": "row",
        "prevalues": [
          "rot",
          "weiss",
          "gelb",
          "blau",
          "schwarz",
          "lila",
          "full",
          "full triangle"
        ]
      },
      {
        "label": "Hintergrundfarbe + auf Handy verstecken",
        "description": "Hintergrundfarbe wählen, außerdem wird das Element auf Handys bis zu 960px versteckt!",
        "key": "class",
        "view": "radiobuttonlist",
        "applyTo": "row",
        "modifier": "{0} not-for-mobile",
        "prevalues": [
          "rot",
          "weiss",
          "gelb",
          "blau",
          "schwarz",
          "lila",
          "full",
          "full triangle"
        ]
      }
    ]

     

    So i have two options now:

    1. just the background

    2. the background + the row is hidden for mobile devices.

    Now I have the following problem. When i choose one of the values with the not-for-mobile class and save those settings I am not able to deselect them. So even if I choose one of the classes above (where only the background-color is set) that class gets overwritten by the second class.

     

    Is there anyway to deselect and option when using the "radiobuttonlist"?

  • LeszekP 27 posts 78 karma points
    Sep 14, 2015 @ 15:07
    LeszekP
    0

    Hi,

    I have similar issue. I had to add a "do-nothing" class to "de-select".

    Does anyone know how to implement it as a checkboxes with option to add multiple values like: class="one blue wide", etc?

    Cheers

Please Sign in or register to post replies

Write your reply to:

Draft