Copied to clipboard

Flag this post as spam?

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


  • Ed 2 posts 72 karma points
    Feb 20, 2018 @ 13:19
    Ed
    0

    Adding multiple "class" css tags to the grid

    I have been using the grid a lot for a project I am working on but have come across a major roadblock. When trying to arrange multiple columns in the grid it is really tricky to get the css I want inserted to make it look correct. Currently, to add more css fields you modify the json file in the grid options:

     [
      {
        "label": "Class",
        "description": "Set a css class",
        "key": "class",
        "view": "textstring"
      }
    ]
    

    But because the key is what is used to populate the field you can not have multiple fields that add different classes. Is there a way around this as often the grid layouts I am making need more than one class to give them the correct design/layout. If someone can give me some advice on a work around I will really appreciate it. Cheers

  • Jamie Pollock 174 posts 853 karma points c-trib
    Feb 20, 2018 @ 20:56
    Jamie Pollock
    0

    Hi Ed,
    You might want to try Umbraco Grid Settings.

    Documentation on how to compile multiple properties into one can be found here.

    I hope this helps :)

    Thanks,
    Jamie

  • 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