JsBlock.setHidden

Syntax

setHidden(hidden: Boolean);

Parameters

hidden. It determines displaying of block:

Description

The setHidden method hides or displays block.

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:

currentBlock.setHidden(true);

After executing the example, the selected block is hidden.

See also:

JsBlock