Dashboard.setAutoSyncNewDso

Syntax

setAutoSyncNewDso(autoSyncNewDso);

Parameters

autoSyncNewDso. It determines whether automatic synchronization is enabled:

Description

The setAutoSyncNewDso method controls automatic synchronization of dimensions of added blocks.

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 autoSincCheckBox = new PP.Ui.CheckBox({
    ParentNode: "checkBox",
    Content: "Automatic synchronization",
    CheckedChanged: function () {
        kapBox.setAutoSyncNewDso(autoSincCheckBox.getChecked());
        if (kapBox.getAutoSyncNewDso() == true) {
            console.log ("Automatic synchronization is enabled")
        }
    }
});

After executing the example, the Automatic Synchronization checkbox is added, which, if selected or deselected, enables or disables automatic synchronization of dimensions of added blocks. When automatic synchronization is enabled, the console displays the appropriate message.

See also:

Dashboard