Optional
buttons?: Record<string, TJSDialogButtonData>Provides configuration of the dialog button bar.
Optional
content?: TJSSvelteConfig | stringA Svelte configuration object or HTML string content.
Optional
default?: stringThe default button ID to focus initially.
Optional
draggable?: booleanThe dialog is draggable when true; default: true.
Optional
focusWhen true auto-management of app focus is enabled; default: true.
Optional
focusWhen true the first focusable element that isn't a button is focused; default: false.
Optional
focusWhen focusAuto
and focusKeep
is true; keeps internal focus; default: false.
Optional
focusWhen true focus trapping / wrapping is enabled keeping focus inside app; default: true.
Optional
minimizable?: booleanWhen true the dialog is minimizable; default: true.
Optional
modal?: booleanWhen true a modal dialog is displayed; default: false.
Optional
modalAdditional options for modal dialog display.
Optional
notifyWhen true and an error is thrown in dialog callback functions post a UI error notification; default: false.
Optional
onCallback 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.
Optional
rejectWhen 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 onClose
function is invoked and any result that is undefined
will cause the Promise to then be rejected; default: false.
Optional
resizable?: booleanWhen true the dialog is resizable; default: false.
Optional
resolveWhen true and resolving any Promises and there are undefined results from any button callbacks the button ID is resolved; default: false.
Optional
title?: stringThe dialog window title.
Optional
transition?: TJSDialogTransitionOptionsTransition options for the dialog.
Optional
zA 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.