Configuration for the single generic dialog boundary function — the one logic-level dialog primitive (supersedes the former per-shape helpers).

interface DialogSpec {
    buttons?: sohl.core.DialogButtonSpec[];
    callback?: sohl.core.DialogResultCallback;
    content?: HTMLString;
    data?: PlainObject;
    modal?: boolean;
    rejectClose?: boolean;
    render?: DialogRenderCallback;
    template?: FilePath;
    title?: string;
}

Properties

Buttons to show; defaults to a single confirming ok button.

Pure result-builder; see DialogResultCallback.

content?: HTMLString

Inline HTML body used when no template is given.

data?: PlainObject

Data passed to the template/content during rendering.

modal?: boolean

Whether the dialog blocks interaction with the rest of the UI.

rejectClose?: boolean

Whether dismissal rejects instead of resolving to null.

Invoked after the dialog renders and on every re-render; see DialogRenderCallback. Use it to wire dynamic form behaviour, e.g. recomputing dependent fields when a dropdown value changes.

template?: FilePath

Handlebars template rendered for the body (takes precedence over content).

title?: string

Dialog window title.