Grouping Controls
Groups allow you to organise similar settings into relevant groups.
Here is an example emtpy group:
{
"groups": [
{
"title": "Colour Settings",
"icon": "paintpalette",
"properties": [
]
}]
}
Group Icon
You can specify an icon to appear next to the title of your group. The Icon property uses SF Symbols. Please refer to the SF Symbol app for a list of available icons.
Group Controls
Controls should placed inside of the properties array. The following example has a heading and an image drop well inside of the group.
{
"groups": [
{
"title": "Button Design",
"icon": "paintpalette",
"properties": [
{
"title": "Title",
"id": "buttonTitle",
"default": "",
"text": {
"default": "Click Me"
}
},
{
"title": "Image",
"id": "buttonImage",
"image": {}
},
]
}
]
}
The following example has two groups, the first with a text box, and the second with an image dropwell.
{
"groups": [{
"title" : "First Group",
"icon" : "1.circle.fill",
"properties" : [{
"title": "Title",
"id": "title",
"text": {}
}]
},
{
"title" : "Second Group",
"icon" : "2.circle.fill",
"properties" : [{
"title": "Image",
"id": "image",
"image": {}
}]
}
]
}
Last updated
Was this helpful?