Module beamui.dialogs.messagebox
Message box implementation.
Synopsis
// show message box with single Ok button
new MessageBox(window, "Dialog title"d, "Some message"d) .show();
// show message box with OK and CANCEL buttons, cancel by default, and handle its result
new MessageBox(
window,
tr("Dialog title"), tr("Some message"),
[ACTION_OK, ACTION_CANCEL], 1, (a) {
if (a is ACTION_OK)
Log .d("OK pressed");
else if (a is ACTION_CANCEL)
Log .d("CANCEL pressed");
}
) .show();
Import line
import beamui .dialogs .messagebox;