getNavBar();
The getNavBar method returns navigation panel of dashboard constructor.
The method returns an object of the PP.Ui.NavigationBar class.
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 checkboxes that will show and hide components of dashboard constructor:
var navBarCheckBox = new PP.Ui.CheckBox({ ParentNode: "but", Content: "Navigation bar", CheckedChanged: function () { kapBox.getNavBar().setIsVisible(navBarCheckBox.getChecked()); } }); var slidePanelCheckBox = new PP.Ui.CheckBox({ ParentNode: "but", Content: "Slide panel", CheckedChanged: function () { kapBox.getSlidePanel().setIsVisible(slidePanelCheckBox.getChecked()); } }); var ribbonCheckBox = new PP.Ui.CheckBox({ ParentNode: "but", Content: "Ribbon", CheckedChanged: function () { kapBox.getRibbon().setIsVisible(ribbonCheckBox.getChecked()); } });
After executing the example the Navigation Panel, Slide Panel and Ribbon checkboxes are added in the page. Selecting and deselecting these checkboxes will show and hide corresponding dashboard components.
See also: