Skip to content

@jsvision/ui / MemoOptions

Interface: MemoOptions ​

Defined in: ui/src/editor/memo.ts:9

Options for Memo.

Extends ​

Properties ​

autoIndent? ​

optional autoIndent?: boolean

Defined in: ui/src/editor/editor-types.ts:38

Copy the previous line's leading whitespace when pressing Enter (default false).

Inherited from ​

EditorOptions.autoIndent


clipboard? ​

optional clipboard?: Editor

Defined in: ui/src/editor/editor-types.ts:32

An optional editor that exposes clipboard contents.

The application event loop owns the canonical clipboard, so ordinary in-app Cut/Copy/Paste works without this option. Pass the same Editor instance when an application needs a visible projection, as in the editor demonstration. Editing the projection does not replace the canonical value until the edited text is explicitly copied.

Inherited from ​

EditorOptions.clipboard


commands? ​

optional commands?: EditorCommandSeam

Defined in: ui/src/editor/editor-types.ts:42

Hook for greying out editing commands as selection/undo state changes (default: none).

Inherited from ​

EditorOptions.commands


editorDialog? ​

optional editorDialog?: EditorDialogHandler

Defined in: ui/src/editor/editor-types.ts:34

Handler for find/replace/save prompts. Defaults to a handler that cancels every prompt.

Inherited from ​

EditorOptions.editorDialog


keyBindings? ​

optional keyBindings?: EditorKeyBindings

Defined in: ui/src/editor/editor-types.ts:44

Editor key set — 'modern' (default) overlays Ctrl+X/C/V/A; 'wordstar' = the classic WordStar layout.

Inherited from ​

EditorOptions.keyBindings


overwrite? ​

optional overwrite?: boolean

Defined in: ui/src/editor/editor-types.ts:40

Start in overwrite mode; Insert toggles it (default false = insert mode).

Inherited from ​

EditorOptions.overwrite


undoDepth? ​

optional undoDepth?: number

Defined in: ui/src/editor/editor-types.ts:36

Maximum retained undo steps (default 1000).

Inherited from ​

EditorOptions.undoDepth


value ​

value: Signal<string>

Defined in: ui/src/editor/memo.ts:11

The two-way bound content: edits write it; writing it from outside replaces the buffer.