getNavBar();
The getNavBar method returns side panel parameters for dashboard block.
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
});
Select dashboard block and execute the following in the console:
var navBarCheckBox = new PP.Ui.CheckBox({
ParentNode: "checkBox",
Content: "Enable/disable side panel parameters",
CheckedChanged: function () {
currentBlock.getNavBar().setEnabled(navBarCheckBox.getChecked());
}
});
After executing the example, the Enable/Disable Side Panel Parameters checkbox is added, which, if selected or deselected, enables or disables side panel parameters for the selected block.
See also: