Dashboard.exportTo

Syntax

exportTo({

    settings

});

Parameters

settings. JSON object with the ExportData parameter, in which export format is set in the format parameter.

Description

The exportTo method exports dashboard in the specified format.

Comments

A dashboard can be exported to the formats: *.xls, *.xlsx, *.pdf, *.rtf, *.html, *.mht, *.emf, *.pptx.

Example

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:

  1. Open the dashboard with the 88665 key:

kapBox.open({
    Key: 88665
});
  1. 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:

Dashboard