code_block_options

On this page

Description:

Configure the controls to edit a code block.

Appears in:
├── _inputs
│   └── *
│       └── Rich Text Input
│           └── options
│               └── code_block_options
└── _editables
    ├── content
    │   └── code_block_options
    └── block
        └── code_block_options
Type:
Object
Properties:
languageObject#

This key defines an editing interface for data with multiple predefined options.

Select inputs only allow one value.

Appears in: code_block_options, _inputs.*.

Show examplesHide examples

In this example, we have configured the category key as a Select Input.

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