Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-3694

Add a reusable ModalPopup javascript widget

    XMLWordPrintable

Details

    • Medium

    Description

      Basic behavior:

      • Register a shortcut that shows the dialog
      • When showing the dialog, register shortcuts for custom actions
      • It displays a semi-transparent screen that covers the underlying document, and a small box which holds the custom content
      • When closing the dialog, unregister the custom shortcuts

      Configurable options:

      • shortcuts for custom actions (default: Ctrl/Meta+G for show, Esc for close)
      • title (default: none)
      • whether to display a close button or not (default: true)
      • colors for the screen, the border, the title and the dialog background
      • horizontal and vertical positions (just 3 values accepted, top/center/bottom and left/center/right, default: center/center)

      Attachments

        Issue Links

          Activity

            People

              sdumitriu Sergiu Dumitriu
              sdumitriu Sergiu Dumitriu
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: