OOUI/Windows/Simple messages

A few convenience functions exist to display a quick message or question dialog, without having to set up a MessageDialog and WindowManager and other boilerplate.

For all the dialogs some additional options, such as, can be passed in the second parameter. If you need more flexibility, you should extend the  class.

Alert dialog
displays a quick modal alert dialog. The dialog has only one action button, labelled "OK" to simply close the dialog. It can also be closed by pressing Esc. See complete documentation. "OOjs_UI_alert_dialog.png"

Confirmation dialog
displays a quick modal confirmation dialog. The dialog has two action buttons, one to confirm an operation (labelled "OK") and one to cancel it (labelled "Cancel"). See complete documentation. "OOjs_UI_confirmation_dialog.png"

Prompt dialog
display a quick prompt dialog. The dialog has a text input widget and two action buttons, one to confirm an operation (labelled "OK") and one to cancel it (labelled "Cancel"). See complete documentation.

Configuration options for the text input, such as  or   can be passed in the   config parameter. "OOjs UI prompt dialog.png"