setAutoSyncNewDso (autoSyncNewDso);
autoSyncNewDso. Determines whether dimensions auto syncing is enabled: True - enabled, False - disabled.
The setAutoSyncNewDso method controls auto syncing of added blocks' dimensions.
To execute the example, the page must contain a dashboard constructor named kapBox. The BODY tag must contain a DIV element with the "checkBox" identifier. Add a checkbox to enable or disable auto syncing dimensions of the added blocks:
var autoSincCheckBox = new PP.Ui.CheckBox({ ParentNode: "checkBox", Content: "Autobinding", CheckedChanged: function () { kapBox.setAutoSyncNewDso(autoSincCheckBox.getChecked()); if (kapBox.getAutoSyncNewDso() == True) { console.log ("Autosynchronization is enabled") } } });
After executing the example the Autosync checkbox is placed in the page. Selecting or deselecting this checkbox enables or disables auto syncing dimensions of the added blocks. When the auto syncing is enabled, the browser console displays an appropriate message.
See also: