Dialog

Open Dialog
Confirm
Prompt
Dialog with custom footer

Usage

API

Dialog Props

PropTypeDefaultDescription
titleString-Dialog header title
showXBooleanfalseShow X close button in corner
confirmLabelString-Confirm button text
rejectLabelString-Reject button text
alternateLabelString-Alternate action button text
confirmStyleString-"success", "danger", or ""
rejectStyleString-"success", "danger", or ""
alternateStyleString-"success", "danger", or ""
confirmBusyBooleanfalseShow loading on confirm button
confirmActiveBooleantrueEnable confirm button
centerBooleanfalseCenter dialog vertically
dismissableBooleantrueAllow closing via backdrop/ESC
zIndexNumber2000CSS z-index for stacking

Dialog Slots

SlotDescription
defaultMain content area of the dialog body
footerCustom content inside the button bar, between alternate action and confirm/reject buttons

Dialog Events

EventDescription
confirmConfirm button clicked
rejectReject button clicked
alternateAlternate button clicked
closeDialog closed (any method)

Dialog Methods

MethodDescription
open()Open the dialog
close()Close the dialog

InputDialog Methods

MethodReturnsDescription
confirm(options)Promise<Boolean>Show confirmation dialog
prompt(options)Promise<String|null>Show input prompt
info(options)PromiseShow info dialog
close()voidManually close the dialog (use with autoCloseOnConfirm: false)

InputDialog Options

OptionTypeDescription
titleStringDialog title
messageString | ArrayMessage or array of messages for multi-input
valueString | ArrayDefault value(s)
typeString | Array"text", "password", or "number"
placeholderString | ArrayInput placeholder(s)
requiredBoolean | ArrayMark input(s) as required
confirmLabelStringConfirm button text
rejectLabelStringReject button text
confirmStyleStringButton style
autoCloseOnConfirmBooleanIf false, dialog stays open after confirm (for async workflows). Default: true