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

collapsed

Table of contents

Description:

This key defines whether a group is collapsed or expanded when first viewed.

The value is a boolean. When true, CloudCannon displays the group in a collapsed state. When false, CloudCannon displays the group in an expanded state.

By default, CloudCannon displays groups in an expanded state.

Appears in:
└── [*]
    └── groups
        └── [*]
            └── collapsed
Type:
boolean
Default value:
false
Examples:

In this example, we have configured the "Details" group to be collapsed by default.

Copied to clipboard
_structures:
  article_information:
    values:
      - label: Blog
        value:
          title: 
          subtitle: 
          author: 
        groups:
          - heading: Titles
            collapsed: true
            inputs:
              - title
              - subtitle
          - heading: Details
            inputs:
              - author
{
  "_structures": {
    "article_information": {
      "values": [
        {
          "label": "Blog",
          "value": {
            "title": null,
            "subtitle": null,
            "author": null
          },
          "groups": [
            {
              "heading": "Titles",
              "collapsed": true,
              "inputs": [
                "title",
                "subtitle"
              ]
            },
            {
              "heading": "Details",
              "inputs": [
                "author"
              ]
            }
          ]
        }
      ]
    }
  }
}
Open in a new tab