getNavBar ()
The getNavBar method returns side panel for dashboard block.
To execute the example the page must contain a dashboard designed named kapBox, and the currentBlock variable must be defined in the page. This variable must contain selected dashboard block (see Kap.KapBox). The BODY tag must contain a DIV element with the checkBox identifier. Add checkbox, selecting or deselecting which activates or locks side panel for the selected block:
var navBarCheckBox = new PP.Ui.CheckBox({
ParentNode: "checkBox",
Content: "Activate/block the side panel",
CheckedState: false,
CheckedChanged: function () {
currentBlock.getNavBar().setEnabled(navBarCheckBox.getChecked());
}
});
After executing the example the Activate/Lock Side Panel checkbox is added to the page. Selecting or deselecting this checkbox activates or locks side panel for selected block.
See also: