exportTo (settings)
settings. JSON object with the ExportData filed where you can define export parameters - format.
The exportTo method exports dashboard to specified format.
The following formats are available for export: *.XLS, *.XLSX, *.PDF, *.RTF, *.HTML, *.MHT, *.EMF, *.PPTX.
To execute the example, the page must contain a dashboard constructor named kapBox. The BODY tag must contain a DIV element with the "but" identifier. Add a button, clicking which saves dashboard in the *.PPTX format:
var expPPTXButton = new PP.Ui.Button({ ParentNode: "but", Content: "Export to *.pptx", Click: function () { kapBox.exportTo({ "ExportData": { "format": "pptx" } }); } });
After executing the example the Export to *.PPTX button is placed in the page. Clicking this button exports dashboard to the *.PPTX format.
See also: