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.4.6 Last updated 2017-08-17 09:26:49