-
I'm sure there is an easy answer for this, but I can't figure it out. I have a dashboard wit a GeoMap and a number of layers the user can select in Custom variable displayed at the top of the dashboard. For a kiosk, I would like to rotate thru those on a timed basis (maybe every 5 minutes) using the refresh feature. I have a function that increments the layer to display, but because the onRender executes whenever anything on the dashboard changes, the update to the layer selector causes the dashboard to go into continuous update. I considered using an Event Listener, but I don't know what to monitor so that the function only executes when the refresh timer wakes up. Any suggestions would be most appreciated! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
You could modify: #148 to check if the variable has changed and ignore if it has. |
Beta Was this translation helpful? Give feedback.
You could modify: #148 to check if the variable has changed and ignore if it has.
There is also an eventBus which can be used https://volkovlabs.io/grafana/developer/eventbus/ example in #85