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

Object Array Values

Table of contents

Description:

This key represents an individual object in the options.values array for Select Inputs.

Appears in:
└── values
    └── Object Array Values
Type:
Array<values(object-array)[*]>
Items:
[*]Object<unknown>#

This key represents an individual object in the options.values array for Select Inputs.

Show examplesHide examples

In this example, we have configured an array of object values for a select input.

Copied to clipboard
_inputs:
  status:
    type: select
    options:
      values:
        - icon: edit_note
          value: draft
        - icon: check_circle
          value: published
{
  "_inputs": {
    "status": {
      "type": "select",
      "options": {
        "values": [
          {
            "icon": "edit_note",
            "value": "draft"
          },
          {
            "icon": "check_circle",
            "value": "published"
          }
        ]
      }
    }
  }
}
Examples:

In this example, we have configured an array of object values for a select input.

Copied to clipboard
_inputs:
  status:
    type: select
    options:
      values:
        - icon: edit_note
          value: draft
        - icon: check_circle
          value: published
{
  "_inputs": {
    "status": {
      "type": "select",
      "options": {
        "values": [
          {
            "icon": "edit_note",
            "value": "draft"
          },
          {
            "icon": "check_circle",
            "value": "published"
          }
        ]
      }
    }
  }
}
Open in a new tab