Skip to content

@jsvision/ui / EditWindowOptions

Interface: EditWindowOptions

Defined in: ui/src/editor/edit-window.ts:14

Options for EditWindow.

Properties

clipboard?

optional clipboard?: Editor

Defined in: ui/src/editor/edit-window.ts:24

The shared clipboard editor — passed to a default-constructed editor, and used for the "Clipboard" title.


editor?

optional editor?: Editor

Defined in: ui/src/editor/edit-window.ts:22

The editor to host (e.g. a file-backed editor, or the shared clipboard editor). Omit for a plain Editor.


editorDialog?

optional editorDialog?: EditorDialogHandler

Defined in: ui/src/editor/edit-window.ts:26

The find/replace/save dialog handler for a default-constructed editor.


rect?

optional rect?: Rect

Defined in: ui/src/editor/edit-window.ts:20

The initial window rect. Prefer setting it here rather than assigning layout.rect after construction: the window pins its scroll bars against this rect on the first layout, and a post-construction assignment can leave one stale frame painted before the window re-pins.