<nve-monaco-input>
Properties
Text content from labels associated with the control.
string
The initial value used when the parent form resets.
string
Determines whether the input prevents editing.
true
false
Determines whether the editor supports code folding.
true
false
The form associated with the control. https://developer.mozilla.org/en-US/docs/Web/API/ElementInternals/form
Determines whether to insert spaces instead of tabs when pressing the tab key.
true
false
Labels associated with the control. https://developer.mozilla.org/en-US/docs/Web/API/ElementInternals/labels
Defines the programming language for syntax highlighting and validation.
css
go
html
javascript
json
markdown
plaintext
python
shell
sql
typescript
yaml
string
Controls the display of line numbers in the editor.
Defines the maximum numeric value. https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/max
number
null
Defines the maximum text length. https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/maxlength
number
Defines the minimum numeric value. https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/min
number
null
Determines whether to show the minimap (code overview) on the right side of the editor.
true
false
Defines the minimum text length. https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/minlength
number
The name submitted with the control value as part of the form data. https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/name
string
Determines whether to disable validation of the input.
true
false
Defines the pattern that text values must match. https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/pattern
string
Determines whether the editor is in read-only mode.
true
false
Determines whether the input requires a value.
true
false
JSON schema for validation when the language equals 'json'. https://json-schema.org/
Defines the value granularity for numeric inputs. https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/step
number
null
Determines the number of spaces to use for indentation.
number
The control type.
string
The validation message shown when the control is invalid. https://developer.mozilla.org/en-US/docs/Web/API/ElementInternals/validationMessage
string
The control validity state. https://developer.mozilla.org/en-US/docs/Web/API/ElementInternals/validity
The current value/content of the editor.
string
The current value parsed as a number.
number
The current value serialized as a string.
string
Indicates whether the control participates in constraint validation. https://developer.mozilla.org/en-US/docs/Web/API/ElementInternals/willValidate
true
false
Controls how the editor wraps text.
Events
Dispatched when the editor cancels initialization.
Dispatched when the user modifies and commits the element's value.
Dispatched when the element's value changes as a result of a user action.
Dispatched when the control is invalid.
Dispatched when the editor finishes initialization and becomes ready.
Dispatched when the control state is reset to its initial value.
Dispatched when syntax validation state changes.
Methods
checkValidity(): boolean
Checks whether the control satisfies its constraints. https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/checkValidity
focus(): unknown
reportValidity(): boolean
Reports whether the control satisfies its constraints. https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/reportValidity
reset(): void
Resets the control value to its initial value.
setCustomValidity(message: string): void
Sets a custom validation message. https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/setCustomValidity
updateEditorOptions(options: monaco.editor.IEditorOptions & monaco.editor.IGlobalEditorOptions): unknown