Module ui.widget.confirmbox
Widget that shows a confirmation alert with a message and Cancel/OK buttons.
Example:
UIManager:show(ConfirmBox:new{ text = _("Save the document?"), ok_text = _("Save"), -- ok_text defaults to _("OK") ok_callback = function() -- save document end, })
It is strongly recommended to set a custom ok_text
describing the action to be
confirmed, as demonstrated in the example above. No ok_text should be specified
if the resulting phrase would be longer than three words.