Ability to trigger custom event on data link click

Hi Grafana Community,

I’m trying to integrate grafana in our application where we run multiple apps inside iframes. So let’s say we have a master iframe which contains all the navigation links to available apps and a nested iframe of active application. The grafana will also be available as an app inside a nested iframe.
The use-case I’m trying to support here is that on click of a data (inside any native grafana panel like table, chart, etc.), the user will be switched to another application with the relevant data.
I can’t use actual navigation here as it will transform the nested iframe of Grafana to another app entirely. I can talk to master iframe with data and it can make the required app iframe active but in order to do that, I’ll have to either execute a custom javascript code or trigger a custom event. Unfortunately, both of these are not supported by data-links of native grafana panels.

Can someone suggest any strategy or a way to acheive this.
I also, tried to add click event listener and was able to get to the html ellement as well but there I was not able to access any required data that Grafana provide with data-link like cell, row, etc.

Note: Version I’m using is Grafana v11.5.2