Skip to content

@jsvision/ui / DialogOptions

Interface: DialogOptions

Defined in: ui/src/dialog/dialog.ts:31

Construction options for Dialog.

Properties

centered?

optional centered?: boolean

Defined in: ui/src/dialog/dialog.ts:46

Center the dialog in its parent. Defaults to true when a size is given via width/height (with no explicit rect position) — the modern convention; false for an explicit rect. Set explicitly to override either.


height?

optional height?: number

Defined in: ui/src/dialog/dialog.ts:40

Dialog height in cells (alternative to a full rect when you want the dialog auto-centered).


rect?

optional rect?: Rect

Defined in: ui/src/dialog/dialog.ts:36

Optional initial absolute placement rect (the host/desktop may override). An explicit rect is a manual placement: it is honored verbatim and is NOT centered unless centered is set true.


title?

optional title?: string

Defined in: ui/src/dialog/dialog.ts:33

Initial title (centered in the top border).


width?

optional width?: number

Defined in: ui/src/dialog/dialog.ts:38

Dialog width in cells (alternative to a full rect when you want the dialog auto-centered).