Kap.JsBlock.setHidden

Syntax

setHidden (hidden: Boolean)

Parameters

hidden. Determines whether the block is visible: True- block is hidden, False - block is visible.

Description

The setHidden method shows or hides block.

Example

To execute the example the page must contain a dashboard designed named kapBox, and the currentBlock variable must be defined. This variable must contain selected dashboard block (see Kap.KapBox). The BODY tag must contain a DIV element with the "but" identifier. Add a button clicking which will hide selected block:

var hiddenButton = new PP.Ui.Button({
    ParentNode: "but",
    Content: "Hide block",
    Click: function () {
        currentBlock.setHidden(true);
    }
});

After executing the example a button named Hide Block is placed in the page. Clicking this button hides selected block.

See also:

Kap.JsBlock