Group control children
property
Estimated deploy date: 3/27/24
As part of the changes made for the new group-toggle
control the API for the existing group
control has been updated to include a children
property. Currently nested controls within a group are defined under value
-> controls
. With this change nested controls will need to be difined under children
instead at the top level.
Migration Path
Move the nested controls array from value
-> controls
to children
at the top level of the group control.
{
"name": "Header section",
"controls": [
{
"option": "group",
"label": "Header",
- "value": {
- "controls": [
- {
- "option": "text",
- "label": "Title",
- "value": {
- "$ref": "#/schema/hero/title"
- }
- }
- ]
- },
+ "children": [
+ {
+ "option": "text",
+ "label": "Title",
+ "value": {
+ "$ref": "#/schema/hero/title"
+ }
+ }
+ ]
}
]
}