Skip to main content

Module dialog

Module dialog 

Source
Expand description

Labels for the built-in confirm dialog and date/time pickers, so an app can word the buttons in its own language and say what they do (“Cancel booking” / “Keep it”) instead of a generic OK / Cancel. Used with Cx::confirm_with, Cx::pick_date_with and Cx::pick_time_with.

Structs§

Confirm
A confirm dialog: title and message, optionally the two button labels, and whether the confirming action is destructive (danger colour on Android and web, .destructive on iOS). Unset labels keep the shell defaults (OK / Cancel).
Picker
Labels for the native date/time picker; unset ones keep the shell defaults. The web shell opens the browser’s own picker, which draws its chrome in the browser’s language and ignores these.