BASICS KB PAGE

Show / Hide a Table using a single line of script

This script uses a toggle pattern to set the table visibility to the opposite of its current visibility.No need for IF/ELSE statements You could expand this logic to toggle visibility of multiple widgets at the same time Why do we define the variable: newState Instead of doing: Table_1.setVisible(!Table_1.isVisible());Chart_1.setVisible(!Table_1.isVisible()); We calculate once: var newState = !Table_1.isVisible();

Show / Hide a Table using a single line of script Read More »

Scroll to Top