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

Add support for returning a Promise in afterPageReady

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Major
    • 14.2
    • 14.2-rc-1
    • None
    • Easy

    Description

      This is useful in case you want a page ready callback make the other page ready callbacks wait for it. The client-side PDF export is such an use case:

      • the print preview needs to be created after the page is ready (and it can take some time)
      • the browser's print() function needs to be called after the print preview is ready

      So it would be great is the page ready callback that creates the print preview can return a promise that forces the print callback wait for the preview to be ready.

      Attachments

        Activity

          People

            mflorea Marius Dumitru Florea
            mflorea Marius Dumitru Florea
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: