interface / @typed/ui/NativeDialog

Options

Native dialog synchronization mode.

Learn this UI primitive →

Package version
1.0.0-beta.13
Category
Native display options
Since
1.0.0

Import

import { Options } from "@typed/ui/NativeDialog";

Signatures

export interface Options {
    readonly modal?: boolean;
}

Why

The choice maps directly to showModal() or show() rather than simulating modality in application code.

Ownership and lifetime

Options are inert and retain no resources.

Property: modal

Whether opening uses the modal top layer; defaults to true.

Property: modal: Why

Modal and non-modal dialogs have different focus, inertness, and dismissal behavior owned by the browser.

Property: modal: Ownership and lifetime

The flag is read during synchronization and retains no resources.

Source