exportTo({
settings
});
settings. JSON object with the ExportData parameter, in which export format is set in the format parameter.
The exportTo method exports dashboard in the specified format.
A dashboard can be exported to the formats: *.xls, *.xlsx, *.pdf, *.rtf, *.html, *.mht, *.emf, *.pptx.
To execute the example, make sure that the repository contains a dashboard with the 88665 key.
Create an HTML page with example of placing the KapBox component and execute the following operations:
Open the dashboard with the 88665 key:
Select the Document > Open main menu item
Execute the following in the console:
kapBox.open({
Key: 88665
});
Execute the following in the console:
var expPPTXButton = new PP.Ui.Button({
ParentNode: "but",
Content: "Export to*.pptx",
Click: function () {
kapBox.exportTo({ "ExportData": { "format": "pptx" } });
}
});
After executing the example, the dashboard with the 88665 key opens, and the Export to *.pptx button is added, clicking which exports the dashboard to the *.pptx file.
See also: