setMainElementsVisible (value);
value. Sets visibility for the splitter, breadcrumb and toolbar.
The setMainElementsVisible method sets visibility for a splitter, breadcrumb, and toolbar.
To execute the example, the page must contain the WbkDataBox component named wbkDataBox (see WbkDataBox Constructor), in the body tag add a div element with the params ID, and also the user must add the following code in the event handler that processes document opening:
// Create a checkbox, selecting or deselecting of which displays or hides splitter, breadcrumb and toolbar cbIsMainElementsVisible = new PP.Ui.CheckBox({ ParentNode: "params", //DOM parent node Content: "IsMainElementsVisible", //text Checked: True //checkbox is selected }); // Link a handler to the isMainElementsVisible checkbox state change event cbIsMainElementsVisible.CheckedChanged.add(function (sender, args) { // Get checkbox value var mustMainElementsVisible = sender.getChecked(); console.log("Set visibility of splitter, breadcrumb and toolbar"); wbkDataBox.setMainElementsVisible(mustMainElementsVisible); });
After executing the example clicking the IsMainElementsVisible checkbox hides the splitter, breadcrumb and the toolbar.
See also: