BeginAlertDialog#
func BeginAlertDialog(canvas *ui.Canvas, theme ui.Theme, viewport ui.Rect, options AlertDialogOptions) AlertDialogBeginAlertDialog creates a confirmation declaration.
type AlertDialog struct {
// contains filtered or unexported fields
}AlertDialog is an application-owned modal confirmation recipe.
BeginAlertDialog#func BeginAlertDialog(canvas *ui.Canvas, theme ui.Theme, viewport ui.Rect, options AlertDialogOptions) AlertDialogBeginAlertDialog creates a confirmation declaration.
Begin#func (dialog AlertDialog) Begin(title, description, actionLabel, cancelLabel string) AlertDialogLayoutBegin paints the dialog and leaves its layer/scope active for custom body UI.
DisableAction#func (dialog AlertDialog) DisableAction() AlertDialogDisableAction keeps the primary action visible and semantically disabled.
DisableCancel#func (dialog AlertDialog) DisableCancel() AlertDialogDisableCancel keeps cancellation visible and semantically disabled.
Disabled#func (dialog AlertDialog) Disabled() AlertDialogDisabled disables both explicit dialog actions.
End#func (dialog AlertDialog) End()End closes the modal scope and layer and traps focus until cancellation. It also ends what the dialog animates in and out.
Paint#func (dialog AlertDialog) Paint(title, description, actionLabel, cancelLabel string) AlertDialogLayoutPaint paints a complete confirmation and closes the modal layer.
WithMedia#func (dialog AlertDialog) WithMedia() AlertDialogWithMedia reserves and paints the official 64px muted media slot.