MAIDR JavaScript API
    Preparing search index...
    • Mount MAIDR in a Word add-in's task pane.

      Call it once Office.js is ready, from Office.onReady. It appends one wrapper to container, reads every chart of the document, shows the selected chart (or the first), and follows the selection until OfficeBinding.dispose.

      The document is read through Body.getOoxml and the selection through Range.getOoxml, which need WordApi 1.1: Word on the web, Word 2016 or later, Word on Mac and on iPad.

      Parameters

      • container: HTMLElement

        The element the pane goes in. A wrapper is appended to it.

      • options: OfficeBindOptions = {}

        Where Office.js is, and how the pane behaves.

      Returns Promise<OfficeBinding>

      The binding, once the first chart has been read. It never rejects.