☁️ Loving our new documentation website? Provide feedback in the CloudCannon Community! ✨

groups[*]

Table of contents

Description:

This key represents an individual group object in the _inputs.*(object-input).options.groups array.

The value is an object that groups inputs together inside an Object Input without changing the data structure. Each group typically contains a heading and inputs array.

Appears in:
└── _inputs
    └── *
        └── Object Input
            └── options
                └── groups
                    └── [*]
Type:
Object
Properties:
collapsedboolean#

This key toggles whether this group is collapsed or expanded when first viewed.

Setting this key to true will collapse this group when first viewed.

By default, this key is false (i.e., the group is expanded when first viewed).

Defaults to: false

commentstring#

This key defines the subtext below the heading.

Supports a limited set of Markdown: links, bold, italic, subscript, superscript, and inline code elements are allowed.

This key defines the documentation link at the top of a Collection browser.

Collection documentation is useful for assisting your team members.

Show examplesHide examples

In this example, the documentation link for the data Collection goes to CloudCannon Documentation.

Copied to clipboard
collections_config:
  data:
    documentation:
      url: https://cloudcannon.com/documentation/
      text: CloudCannon Documentation
      icon: star
{
  "collections_config": {
    "data": {
      "documentation": {
        "url": "https://cloudcannon.com/documentation/",
        "text": "CloudCannon Documentation",
        "icon": "star"
      }
    }
  }
}
headingstring#

This key defines the main text for the group shown when collapsed or expanded.

This key defines the keys of each input in this group.

Examples:
Open in a new tab