/
toggleVisibility block

toggleVisibility block

Use this block to toggle the visibility of one or several components

Add a gauge and button on stage, and right click on the button, and select "create event > mouse > mouse click" :

Switch to the blocks mode.

In this example the visibility of the component named "Gauge" will be toggled:

The user can also toggle the visibility of several blocks by replacing the "component" block with a "queryAll" block:

(this will make all components, including the button toggle, so the user won't be able to press it a second time)

Related content

JS Blocks
JS Blocks
More like this
GB Components
GB Components
More like this
Settings
Read with this
Floor Table Hide Show
Floor Table Hide Show
More like this
Ractive Weather
Ractive Weather
Read with this
GB AM Gauges
GB AM Gauges
More like this