Dashboard.getNavBar

Syntax

getNavBar();

Description

The getNavBar method returns side panel parameters for dashboard block.

Comments

The method returns object of the PP.Ui.NavigationBar class.

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. Select dashboard block and execute the following in the console:

var navBarCheckBox = new PP.Ui.CheckBox({
    ParentNode: "checkBox",
    Content: "Side panel parameters",
    CheckedChanged: function () {
        kapBox.getNavBar().setIsVisible(navBarCheckBox.getChecked());
        
    }
});
var slidePanelCheckBox = new PP.Ui.CheckBox({
    ParentNode: "checkBox",
    Content: "Side panel",
    CheckedChanged: function () {
        kapBox.getSlidePanel().setIsVisible(slidePanelCheckBox.getChecked());
    }
});
var ribbonCheckBox = new PP.Ui.CheckBox({
    ParentNode: "checkBox",
    Content: "Ribbon",
    CheckedChanged: function () {
        kapBox.getRibbon().setIsVisible(ribbonCheckBox.getChecked());
    }
});

After executing the example, the Side Panel Parameters, Side Panel and Ribbon checkboxes are added, which, if selected or deselected, will display or hide corresponding dashboard components.

See also:

Dashboard