Skip to main content

AutomationCodeEditor

The AutomationCodeEditor provides a text input field specifically designed for editing code. It further offers properties to configure, for example, syntax highlighting, spell checks, or line wrapping. Upon selecting the editor in the browser, the user can start editing by pressing the Enter key and press the Escape key to quit and return to the keyboard navigation flow.

Import

import { AutomationCodeEditor } from '@dynatrace/automation-action-components';

Props

AutomationCodeEditorProps

extends
NameTypeDefaultDescription
value?
''The content of the editor.
onChange?
(value: ) =>
-Callback that is called when the editor value changes.
placeholder?
- Initially displayed when there is no other content.
language?
| | | | | | |
'other'The language for syntax highlighting and autocompletion.
readOnly?
falseWhether the input is readonly.
fullHeight?
falseIf set to true, the code editor uses the full height available in its parent.
Still have questions?
Find answers in the Dynatrace Community