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

Snippet Definition Select Value

Table of contents

Description:

A value option for select inputs, typically used in language lists. Contains a display name and the actual value to use.

Appears in:
└── Snippet Definition Value
    └── Select Values Array
        └── Snippet Definition Select Value
Type:
Object
Properties:
namestring#

The display name shown to users when selecting this option. For example, "JavaScript" for a language with value "js".

The actual value used when this option is selected. Can be a string, number, or boolean. For example, "js" for JavaScript or 4 for an indentation level.

Examples:
Open in a new tab