This topic is locked

How to use toggleitem to hide a dashboard element on page load.

10/7/2024 1:24:03 AM
PHPRunner General questions
D
DUKE author

Hi Everyone,

I am using the following code to show a specific dashboard panel using a custom button:
Runner.dashboard.toggleItem("panel_1", true);

For the life of me I cannot figure out how to use this to hide the panel when the page loads initially.

When I add:
Runner.dashboard.toggleItem("panel_1", false);

to javascript on load, it hides the dashboard panel partially but not completely.