<nve-monaco-diff-input>
Properties
Resets the control value to its initial value.
() => void
Sets a custom validation message. https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/setCustomValidity
(message: string) => void
Checks whether the control satisfies its constraints. https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/checkValidity
() => boolean
Reports whether the control satisfies its constraints. https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/reportValidity
() => boolean
Text content from labels associated with the control.
string
Labels associated with the control. https://developer.mozilla.org/en-US/docs/Web/API/ElementInternals/labels
The control type.
string
The current value parsed as a number.
number
The current value serialized as a string.
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
Indicates whether the control participates in constraint validation. https://developer.mozilla.org/en-US/docs/Web/API/ElementInternals/willValidate
true
false
The form associated with the control. https://developer.mozilla.org/en-US/docs/Web/API/ElementInternals/form
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
Defines the maximum text length. https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/maxlength
number
Defines the minimum text length. https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/minlength
number
Defines the value granularity for numeric inputs. https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/step
number
null
Defines the maximum numeric value. https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/max
number
null
Defines the minimum numeric value. https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/min
number
null
Defines the pattern that text values must match. https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/pattern
string
The initial value used when the parent form resets.
string
Determines whether to disable validation of the input.
true
false
Controls how the editor wraps text.
The current value/content of the editor.
string
Determines the number of spaces to use for indentation.
number
JSON schema for validation when the language equals 'json'. https://json-schema.org/
Determines whether the input requires a value.
true
false
Determines whether to show the minimap (code overview) on the right side of the editor.
true
false
Controls the display of line numbers in the editor.
Determines whether to insert spaces instead of tabs when pressing the tab key.
true
false
Determines whether the editor supports code folding.
true
false
Defines whether to render the diff in side-by-side mode (if enough width is available).
true
false
Determines whether the editor is in read-only mode.
true
false
Defines the programming language for syntax highlighting of the original value. Falls back to the language property if not set.
css
go
html
javascript
json
markdown
plaintext
python
shell
sql
typescript
yaml
string
Defines the original value of the diff.
string
Defines the programming language for syntax highlighting and validation.
css
go
html
javascript
json
markdown
plaintext
python
shell
sql
typescript
yaml
string
Determines whether the input prevents editing.
true
false
Events
Dispatched when the control is invalid.
Dispatched when the control state is reset to its initial value.
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 editor finishes initialization and becomes ready.
Dispatched when the editor cancels initialization.
Dispatched when syntax validation state changes.