Skip to content

@jimka/typescript-ui / core / DialogConfig

Interface: DialogConfig

Defined in: src/typescript/lib/core/Dialog.ts:50

Configuration object passed to new Dialog(config) or Dialog.show(config).

Properties

buttons?

ts
optional buttons: DialogButtonConfig[];

Defined in: src/typescript/lib/core/Dialog.ts:61

Button definitions for the footer row. Defaults to a single OK button that resolves with 'confirm'.


closeOnBackdrop?

ts
optional closeOnBackdrop: boolean;

Defined in: src/typescript/lib/core/Dialog.ts:67

When true, clicking the backdrop closes the dialog with result 'close'. Defaults to false.


contentComponent?

ts
optional contentComponent: Component;

Defined in: src/typescript/lib/core/Dialog.ts:56

A custom component rendered in the content area instead of a message label.


height?

ts
optional height: number;

Defined in: src/typescript/lib/core/Dialog.ts:65

Dialog panel height in pixels. When omitted the height is computed from content.


message?

ts
optional message: string;

Defined in: src/typescript/lib/core/Dialog.ts:54

Plain-text body message. Ignored when contentComponent is provided.


title

ts
title: string;

Defined in: src/typescript/lib/core/Dialog.ts:52

Text displayed in the dialog title bar.


width?

ts
optional width: number;

Defined in: src/typescript/lib/core/Dialog.ts:63

Dialog panel width in pixels. Defaults to 480.