rune-langium / visual-editor/src / ExpressionEditorSlotProps
Interface: ExpressionEditorSlotProps
Defined in: packages/visual-editor/src/types.ts:212
Props provided to the expression editor render-prop slot.
packages/visual-editor is editor-agnostic — the host app provides the actual editor implementation (e.g. CodeMirror, Monaco) via a renderExpressionEditor prop on FunctionForm.
Extended by
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
error? | string | null | Validation error message (null when valid). | packages/visual-editor/src/types.ts:220 |
expressionAst? | unknown | Raw AST expression object — enables direct tree conversion without reparsing text. | packages/visual-editor/src/types.ts:224 |
onBlur | () => void | Called when the editor loses focus — triggers validation & commit. | packages/visual-editor/src/types.ts:218 |
onChange | (value) => void | Called on every keystroke / change. | packages/visual-editor/src/types.ts:216 |
placeholder? | string | Placeholder text shown when the editor is empty. | packages/visual-editor/src/types.ts:222 |
value | string | Current expression text. | packages/visual-editor/src/types.ts:214 |