Skip to content

Interface: MonacoEditorProps#

Renderer.Component.MonacoEditorProps

Table of contents#

Properties#

Methods#

Properties#

autoFocus#

Optional autoFocus: boolean


className#

Optional className: string


id#

Optional id: string


innerRef#

Optional innerRef: ForwardedRef<MonacoEditorRef>


language#

Optional language: "json" | "yaml"


options#

Optional options: Partial<IStandaloneEditorConstructionOptions>


readOnly#

Optional readOnly: boolean


style#

Optional style: CSSProperties


theme#

Optional theme: MonacoTheme


value#

value: string

Methods#

onChange#

Optional onChange(value, evt): void

Parameters#

Name Type
value string
evt IModelContentChangedEvent

Returns#

void


onDidContentSizeChange#

Optional onDidContentSizeChange(evt): void

Parameters#

Name Type
evt IContentSizeChangedEvent

Returns#

void


onDidLayoutChange#

Optional onDidLayoutChange(info): void

Parameters#

Name Type
info EditorLayoutInfo

Returns#

void


onError#

Optional onError(error): void

Parameters#

Name Type
error unknown

Returns#

void


onModelChange#

Optional onModelChange(model, prev?): void

Parameters#

Name Type
model ITextModel
prev? ITextModel

Returns#

void