Skip to Content
You're viewing documentation of an outdated version. Check the latest documentation for v5.x.x
FeaturesToggle Display

Toggle Display

This feature is only available in ESP-DASH Pro

You can quickly show or hide widgets (cards, charts, tabs and statistics) using the setDisplay function. Use it to show or hide stuff on your dashboard when it’s required. Possibilities are endless with this function and makes the dashboard truly customizable.

💡

All widgets are displayed by default.

Usage

You can put this function anywhere in your setup block:

Hide Widget

card1.setDisplay(false); // Hide your card OR chart1.setDisplay(false); // Hide your chart OR tab1.setDisplay(false); // Hide your tab OR stat1.setDisplay(false); // Hide your statistic

Show Widget

card1.setDisplay(true); // Show your card OR chart1.setDisplay(true); // Show your chart OR tab1.setDisplay(true); // Show your tab OR stat1.setDisplay(true); // Show your statistic
Last updated on
Copyright © 2025 Softt. All rights reserved.