AutomationCodeEditor
- Reference
- 2 minutes
The AutomationCodeEditor provides a text input field specifically designed for editing code. Furthermore, it 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 can quit and return to the keyboard navigation flow by pressing the Escape key.
Import
import { AutomationCodeEditor } from '@dynatrace/automation-action-components';
Props
AutomationCodeEditorProps
extends
| Name | Type | Default | Description |
|---|---|---|---|
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. |
fullHeight? | false | If set to true, the code editor uses the full height available in its parent. |