SaveDashboardExtension.performSaveDashboard(String, String) Method
Allows you to save the current dashboard with a specified unique name and JSON model.
Namespace: DevExpress.Dashboard
Assembly: DevExpress.Dashboard.v17.2.Web.Scripts.dll
Declaration
Parameters
| Name | Type | Description |
|---|---|---|
| dashboardId | String | A string value that is a unique name of the created dashboard. |
| dashboardJson | String | A dashboard model encoded in the specified JSON string. |
Remarks
The code snippet below shows you how to save the current dashboard with the specified unique name and JSON model.
// ...
function saveDashboard() {
var newExtension = dashboardControl.findExtension("save-dashboard");
var newName = "customDashboard";
newExtension.performSaveDashboard(newName, dashboardControl.dashboard().getJSON());
}
// ...
See Also