- Description:
This key defines the order and custom grouping for inputs within a Structure.
The value is an array of group objects. Each group object can contain a
heading,comment,collapsed, andinputsarray.- Appears in:
- Type:
Array<groups[*]>- Items:
This key represents an individual group object in the
values[*].groupsarray.The value is an object that groups inputs together within a structure value without changing the data structure. Each group typically contains a
headingandinputsarray.Show examplesHide examples
In this example, we have configured a group with a heading and inputs array to organize structure inputs.
Copied to clipboard_structures: article_information: values: - label: Blog value: title: subtitle: author: groups: - heading: Titles inputs: - title - subtitle - heading: Details inputs: - author{ "_structures": { "article_information": { "values": [ { "label": "Blog", "value": { "title": null, "subtitle": null, "author": null }, "groups": [ { "heading": "Titles", "inputs": [ "title", "subtitle" ] }, { "heading": "Details", "inputs": [ "author" ] } ] } ] } } }- Examples:
In this example, we want to separate the inputs into two groups with descriptive headings:
titleandsubtitleunder theTitlesheading, andauthorunder theDetailsheading.Copied to clipboard_structures: article_information: values: - label: Blog value: title: subtitle: author: groups: - heading: Titles inputs: - title - subtitle - heading: Details inputs: - author{ "_structures": { "article_information": { "values": [ { "label": "Blog", "value": { "title": null, "subtitle": null, "author": null }, "groups": [ { "heading": "Titles", "inputs": [ "title", "subtitle" ] }, { "heading": "Details", "inputs": [ "author" ] } ] } ] } } }