This tutorial is a work in progress.
The [toc] macro is a standalone macro and it cannot be used inline
This is a Javascript widget bundled by default with the XWiki platform.

Usage

The Modal Popup is a widget used as a base class for different modal widgets in XWiki, like the Confirmation Box or the Jump To Page widget. It will not display a dialog box since it should not be used by itself.

Constructor fields for the ModalPopup Javascript class

content
Object that defines the content of the modal dialog.
shortcuts
Object that defines the shortcuts that will pop up the dialog.
options
Object that defines the options for the modal dialog: title, displayCloseButton, screenColor, borderColor, titleColor, backgroundColor, screenOpacity, verticalPosition and horizontalPosition.

Examples

Widgets bundled by default with XWiki build on top of the Model Popup class:

Tips

Check out the Javascript code:

Check out the CSS code:

Tags:
   

Get Connected