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

style

Table of contents

Description:

This key defines how CloudCannon shows Structure options to populate an Object or Array input.

This can be using a select-style search bar or a pop-up modal.

Modals are useful when you have several value options for your Structure.

Values can be one of the following: select, or modal.

Appears in:
└── Structure
    └── style
Type:
string
Default value:
select
Allowed values:
select
modal
Examples:

In this example, the related_articles Structure only has one option so a select searchbar is appropriate.

Copied to clipboard
_structures:
  related_articles:
    style: select
    values:
      - value: 
        name: 
        description: 
        url:
{
  "_structures": {
    "related_articles": {
      "style": "select",
      "values": [
        {
          "value": null,
          "name": null,
          "description": null,
          "url": null
        }
      ]
    }
  }
}
Open in a new tab