code-editor
<form.code-editor>
Properties
Name | Description | Type | Default |
---|---|---|---|
name | string | ||
label | string | ||
value | "" | ||
placeholder | string | ||
theme | string | "monokai" | |
mode | string | "text" | |
required | boolean | false | |
readOnly | boolean | false | |
showLineNumbers | true | ||
maxLines | number | "Infinity" | ||
minLines | 3 | ||
tabSize | 2 | ||
printMargin | boolean | ||
highlightActiveLine | true | ||
showExportButton | boolean | false | |
showCopyButton | true | ||
showExpandButton | boolean | ||
exportFileName | string | "download.txt" | |
jsonSchema | Record<string, any> | ||
validateJsonSchemaMode | "warning" | "error" | "warning" | |
schemaRef | string | ||
enableLiveAutocompletion | boolean | false | |
customCompleters | string[] | {
caption?: string;
value: string;
meta?: string;
score?: number;
}[] | ||
loadYamlInJsonMode | true | ||
highlightTokens | HighlightTokenSettings[] |
Events
Name | Description | Event Detail |
---|---|---|
code.change | string | |
editor.blur | string | |
error.change | Error - `{err:Record<string,any>[],hasError:boolean}` | |
highlightToken.click | {
type: string;
value: string;
} |