Module ui.widget.confirmbox

Widget that shows a confirmation alert with a message and Cancel/OK buttons.


    text = _("Save the document?"),
    ok_text = _("Save"),  -- ok_text defaults to _("OK")
    ok_callback = function()
        -- save document

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.

generated by LDoc 1.5.0 Last updated 2024-02-29 17:23:34