How to create groups in the custom component properties

must be doing something wrong, copied from manual but doesn’t divide the areas as I expect

see example lots of custom stuff , went a bit over the top

also with the slider is there a way of changing the increments of 1 to another number

update link forgot to turn main container background on

https://www.dropbox.com/scl/fo/9t3kykn53r9m8x0lnrgvp/AFI5ft1DUWbXfvlnIWSCxe4?rlkey=d4hd7rwy6rs340b380rqwuwij&st=r969pfev&dl=0

I don’t think so, and I’m not sure of the use case for this…

Here’s a code sample that displays two groups in the properties file:

{
    "groups": [{
        "title" : "Group 1",
        "properties" : [{
            "title": "Title",
            "property": "title",
            "text": {}
        }]
    },

    {
        "title" : "Group 2",
        "properties" : [
              {
            "title": "Image",
            "property": "image",
            "image": {}
            },

        ]
    }
    ]

}

And it looks like this in Elements…

Hope that helps!

Dan that’s what I tried before not sure it works with all the properties I have, trying to group into sections, still might not be understanding
I was able to group multiple images that was about it

creating my own pixel control area in Elements, brilliant program / app, added a couple more, except image bug in preview

https://www.dropbox.com/scl/fo/9t3kykn53r9m8x0lnrgvp/AFI5ft1DUWbXfvlnIWSCxe4?rlkey=d4hd7rwy6rs340b380rqwuwij&st=nntsod7b&dl=0

Reason for larger increments, example z index in tailwind is in 10s or their website shows this

We support an items array in sliders so you could do this:

{
  "title": "Z Index",
  "id": "zIndex",
  "format": "z-{{value}}",
  "slider": {
    "default": "0",
    "items": [
      {
        "value": "0",
        "title": "0"
      },
      {
        "value": "10",
        "title": "10"
      },
      {
        "value": "20",
        "title": "20"
      },
      {
        "value": "30",
        "title": "30"
      },
      {
        "value": "40",
        "title": "40"
      },
      {
        "value": "50",
        "title": "50"
      }
    ]
  }
},
2 Likes

works a treat excellent

Ah, forgot about this :crazy_face: Have added it to the dev docs :nerd_face:

1 Like

Dan finally worked out groups in custom HTML, using your example

Also played a bit more with sections containers etc, get the layered approach, kind of just understanding where you want to target, might be the built in drop in sections you could be able to see the layout but only edit as is, might help when you first use Elements

1 Like

Looking good, it gets very addictive building custom components :smiling_face:

updated with groups and the z-index increments of ten,

https://www.dropbox.com/scl/fo/9t3kykn53r9m8x0lnrgvp/AFI5ft1DUWbXfvlnIWSCxe4?rlkey=d4hd7rwy6rs340b380rqwuwij&st=wl3ul1lt&dl=0
1 Like