CreateDashboardExtension.performCreateDashboard(String, String) Method
Creates a new dashboard with a specified name and JSON model.
Namespace: DevExpress.Dashboard
Assembly: DevExpress.Dashboard.v17.2.Web.Scripts.dll
Declaration
Parameters
| Name | Type | Description |
|---|---|---|
| dashboardName | String | A string value that is the 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 create a simple dashboard with the specified name and JSON model.
// ...
function createNewDashboard() {
var newExtension = dashboardControl.findExtension("create-dashboard");
var newName = "New Dashboard";
newExtension.performCreateDashboard(newName, dashboardControl.dashboard().getJSON());
}
// ...
See Also