setBlockTitileVisible (visible: Boolean)
visible. Determines whether block title is visible: True - title is shown, False - title is hidden.
The setBlockTitileVisible method shows and hides block title.
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 a checkbox, selecting or deselecting which will show or hide title of selected block:
var blockTitleCheckBox = new PP.Ui.CheckBox({ ParentNode: "checkBox", Content: "Show/hide block title", CheckedChanged: function () { currentBlock.setBlockTitileVisible(blockTitleCheckBox.getChecked()); } });
After executing the example the Show/Hide Block Title checkbox is added in the page. Selecting or deselecting this checkbox shows or hides title of selected block.
See also: