setIsDirty();
The setIsDirty method determines whether there are pending changes in dashboard.
Available values:
True. Dashboard is changed.
False. Dashboard is not changed. The value is used to further determine whether there are changes.
To get whether there are pending changes in dashboard, use the Dashboard.getIsDirty method.
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:
Open the dashboard with the 88665 key:
Select the Document > Open main menu item.
Execute the following in the console:
kapBox.open({
Key: 88665
});
Execute the following in the console:
if (kapBox.getIsDirty() == true) {
kapBox.setIsDirty(false)
}
After executing the example, indicator of pending changes has been changed to determine further dashboard changes.
See also: