Skip to main content

DQLEditor

The DQLEditor is specifically designed for editing DQL queries. It further offers syntax highlighting and autocomplete functionality specific to the Dynatrace Query Language. Once the editor is focused via the keyboard, the user must press "Enter" to start editing and "Escape" to quit editing and return to the keyboard navigation flow..

DQLEditorProps

extends, , , ,
NameTypeDefaultDescription
id?
-The ID for the DOM element.
'data-testid'?
'dql-editor'Test id used for matching the editor container.
value?
''The value (i.e. contents) of the editor.
onChange?
(value: ) =>
-Handler that is called when the value changes.
placeholder?
-Displayed initially in the editor when there is no other content.
spellCheck?
falseWhether spellcheck should be enabled.
fullHeight?
falseIf set to true, the DQL editor uses the full height available in its parent.
defaultFolding?
[]
-The start indices (character position) that should be folded initially in uncontrolled scenarios.
folding?
[]
-The start indices (character position) that should be folded initially in controlled scenarios.
onFoldingChange?
(values: []) =>
-Callback that is called when folding changes.
readOnly?
falseWhether the input is readonly
lineWrap?
falseWhether long lines should be wrapped.
onValidityChange?
(validityInfo: []) =>
-Callback fired when new diagnostic information is available. Use this to get validity information from outside the editor.
onBlur?
(e: ) =>
-Callback that is called when the editor loses focus.
onFocus?
(e: ) =>
-Callback that is called when the editor receives focus.
size?
|
'default'Editor layout size, 'default' for standard spacing and 'condensed' for reduced font-size, padding and margins.
required?
falseIf set to true, `aria-required` will be set to true on the input element.
Still have questions?
Find answers in the Dynatrace Community