Skip to content

@sqlrooms/monaco-editor / JsonMonacoEditorProps

Interface: JsonMonacoEditorProps ​

Extends ​

Properties ​

schema? ​

optional schema?: object

The JSON schema to validate against


value? ​

optional value?: string | object

The JSON value to edit


onMount? ​

optional onMount?: OnMount

Callback when the editor is mounted

Inherited from ​

MonacoEditorProps.onMount


onChange? ​

optional onChange?: OnChange

Callback when the editor content changes

Inherited from ​

MonacoEditorProps.onChange


className? ​

optional className?: string

CSS class name for the editor container

Default ​

ts
''

Inherited from ​

MonacoEditorProps.className


theme? ​

optional theme?: Theme

The theme of the editor ('dark' | 'light' | 'system') Can be explicitly set or will automatically use the app theme if not provided

Default ​

ts
'dark'

Inherited from ​

MonacoEditorProps.theme


readOnly? ​

optional readOnly?: boolean

Whether the editor is read-only

Default ​

ts
false

Inherited from ​

MonacoEditorProps.readOnly


options? ​

optional options?: IStandaloneEditorConstructionOptions

Additional options for the editor

Inherited from ​

MonacoEditorProps.options