Skip to main content

Code input

The code input component allows you to get a string from the user using a code editor.

Code input API

The following section details Code input component's specific settings. For more details on the App editor, check the dedicated documentation or the App editor Quickstart:

Controls

This component can be controlled by frontend scripts using these functions:

NameParametersDescriptionExample
setValueid: string, value: anyManually set or force the value of a component.setValue(id: 'a', value: 17)

Code input configuration

NameTypeConnectableTemplatableDefaultDescription
PlaceholderstringfalsefalseType...The code input placeholder.
Default valuestringtruefalseThe default value of the code input.
Disable SuggestionsbooleanfalsefalsefalseWhether the code input should disable suggestions.
Disable LintingbooleanfalsefalsefalseWhether the code input should disable linting.
Hide Line NumbersbooleanfalsefalsefalseWhether the code input should hide line numbers.

Outputs

NameTypeDescription
ResultstringThe code input value.