Dashboard.getIsDirty

Syntax

getIsDirty();

Description

The getIsDirty method returns whether there are pending changes in a dashboard.

Comments

To determine whether there are pending changes in a dashboard, use the Dashboard.setIsDirty method.

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:

if (kapBox.getIsDirty() == true) {
    kapBox.refreshBlocksWithChilds();
    kapBox.getSaveDialog().show();
}

After executing the example, data sources of dashboard blocks are refreshed, and a save dialog box opens if there are pending changes.

See also:

Dashboard