Quick Start
Functions
alert(data) → string
alert(data) → string
Opens an alert dialog and waits for user interaction.Returns:
'confirm'- User clicked the confirm button'cancel'- User clicked cancel or closed the dialog
closeAlert()
closeAlert()
Programmatically closes any currently open alert dialog.
Configuration
Dialog Options
The dialog header text. Supports markdown formatting.
Either
header or content must be provided.The main content text displayed in the dialog. Supports markdown formatting.
Either
header or content must be provided.FontAwesome icon class (e.g.,
'fas fa-trash', 'fas fa-info-circle').Icon color using hex code or CSS color name.
Dialog type that affects the overall styling.Options:
'default', 'info', 'success', 'warning', 'error'Dialog size for responsive layouts.Options:
'xs', 'sm', 'md', 'lg', 'xl'Whether to show the cancel button.
Custom button labels for custom text.
Array of callout objects to highlight important information within the dialog.See Callouts section below for detailed options.
Callouts
Callouts are styled information boxes that can be added to alert dialogs to emphasize critical information.The callout content text. Supports markdown formatting.
The callout title/header. Supports markdown formatting.
Callout styling type.Options:
'info', 'success', 'warning', 'error'Custom FontAwesome icon. Inherits the color from the callout type.
Preview

