Dashboard.dispose

Syntax

dispose();

Description

The dispose method deletes instance of opened dashboard from the page.

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 disposeButton = new PP.Ui.Button({
    ParentNode: "but",
    Content: "Delete",
    Click: function () {
        kapBox.dispose();
    }
});

After executing the example, the dashboard with the 88665 key opens, and the Delete button is added, clicking which deletes the dashboard designer.

See also:

Dashboard