VolkovLabs / business-forms

The Business Forms panel is a conceptually new plugin for Grafana. It is the first plugin that allows inserting and updating application data, as well as modifying configuration directly from your Grafana dashboard.
https://docs.volkovlabs.io
Apache License 2.0
86 stars 10 forks source link

Events in Grafana #348

Closed BlinderMiri closed 9 months ago

BlinderMiri commented 9 months ago

I'm working with a geomap panel in grafana with a geojason layer that shows me some areas. In addition I have a variable called AOI (area of interest). I'm trying to add an on-click event that when an area is clicked, it will be colored in a black frame and the variable AOI will be updated to the value of that area. My question is, is there any concept of events in Grafana? If so, how do you use them? If not, how do I add javascript code to grafna to do this?

mikhail-vl commented 9 months ago

@BlinderMiri For inter panel communication you can use EventBus which support from v3.4.0: https://volkovlabs.io/blog/form-panel-3.4.0-20240105/#event-bus-and-app-events