/
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)
, multiple selections available,
Related content
GB Components
GB Components
Read with this
Settings
Settings
Read with this
Ractive Weather
Ractive Weather
Read with this
JS Blocks
JS Blocks
Read with this
GB JavaScript Tips
GB JavaScript Tips
More like this
Thermostat
Thermostat
More like this