Skip to content

@k8slens/extensions / Exports / Renderer / Component / MonacoEditorProps

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: "yaml" | "json"


options#

Optional options: Partial<IStandaloneEditorConstructionOptions>


readOnly#

Optional readOnly: boolean


setInitialHeight#

Optional setInitialHeight: 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