DotNaos UI

Editor

Code Editor from the Code package.

Source code

Waiting for the preview before loading source files · 2 of 2

Properties

Public properties derived from the component’s TypeScript signature.

PropertyTypeDefault
valueRequired
string
onChangeOptional
((value: string) => void)
languageOptional
string
"plaintext"
heightOptional
CodeEditorHeight
400
frameOptional
"panel" | "none"
"panel"
readOnlyOptional
boolean
false
themeOptional
"light" | "vs-dark"
"vs-dark"
accessibilityLabelOptional
string
"Code editor"
preferencesOptional
CodeEditorPreferences
{}
errorMessageOptional
string
onLoadErrorOptional
((error: Error) => void)