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

picker_view

Table of contents

Description:

This key defines how CloudCannon should render selectable options in the dropdown of a Select Input.

Appears in:
└── _inputs
    └── *
        ├── Select Input
        │   └── options
        │       └── picker_view
        ├── Multiselect Input
        │   └── options
        │       └── picker_view
        ├── Choice Input
        │   └── options
        │       └── picker_view
        └── Multichoice Input
            └── options
                └── picker_view
Type:
string
Allowed values:
card
text
gallery
gallery-left
Examples:

In this example, we have configured a Select Input to display options using the card view.

Copied to clipboard
_inputs:
  category:
    type: select
    options:
      values:
        - Blog
        - News
        - Events
      picker_view: card
{
  "_inputs": {
    "category": {
      "type": "select",
      "options": {
        "values": [
          "Blog",
          "News",
          "Events"
        ],
        "picker_view": "card"
      }
    }
  }
}
Open in a new tab