Type Alias TJSDialogOptions
buttons?: Record<string, TJSDialogButtonData>;
content?: TJSSvelteConfig | string;
default?: string;
draggable?: boolean;
focusAuto?: boolean;
focusFirst?: boolean;
focusKeep?: boolean;
focusTrap?: boolean;
minimizable?: boolean;
modal?: boolean;
modalOptions?: TJSDialogModalOptions;
notifyError?: boolean;
onClose?: string | ((data?: {
application: TJSDialog;
}) => any);
rejectClose?: boolean;
resizable?: boolean;
resolveId?: boolean;
title?: string;
transition?: TJSDialogTransitionOptions;
zIndex?: number | null;
}
Type declaration
Optionalbuttons?: Record<string, TJSDialogButtonData>Provides configuration of the dialog button bar.
Optionalcontent?: TJSSvelteConfig | stringA Svelte configuration object or HTML string content.
Optionaldefault?: stringThe default button ID to focus initially.
Optionaldraggable?: booleanThe dialog is draggable when true; default: true.
OptionalfocusAuto ?: booleanWhen true auto-management of app focus is enabled; default: true.
OptionalfocusFirst ?: booleanWhen true the first focusable element that isn't a button is focused; default: false.
OptionalfocusKeep ?: booleanWhen
focusAutoandfocusKeepis true; keeps internal focus; default: false.OptionalfocusTrap ?: booleanWhen true focus trapping / wrapping is enabled keeping focus inside app; default: true.
Optionalminimizable?: booleanWhen true the dialog is minimizable; default: true.
Optionalmodal?: booleanWhen true a modal dialog is displayed; default: false.
OptionalmodalOptions ?: TJSDialogModalOptionsAdditional options for modal dialog display.
OptionalnotifyError ?: booleanWhen true and an error is thrown in dialog callback functions post a UI error notification; default: false.
OptionalonClose ?: string | ((data?: {
application: TJSDialog;
}) => any)Callback invoked when dialog is closed; no button option selected. When defined as a string any matching function by name exported from content Svelte component is invoked.
OptionalrejectClose ?: booleanWhen true and a Promise has been created by TJSDialog.wait and the Promise is not in the process of being resolved or rejected on close of the dialog any
onClosefunction is invoked and any result that is undefined will cause the Promise to then be rejected; default: false.Optionalresizable?: booleanWhen true the dialog is resizable; default: false.
OptionalresolveId ?: booleanWhen true and resolving any Promises and there are undefined results from any button callbacks the button ID is resolved; default: false.
Optionaltitle?: stringThe dialog window title.
Optionaltransition?: TJSDialogTransitionOptionsTransition options for the dialog.
OptionalzIndex ?: number | nullA specific z-index for the dialog. Pass null for the dialog to act like other applications in regard bringing to top when activated.
Defines the common dialog configuration data.