Hi,
I'm using the built-in textpanel a lot which gives me a lot of freedom for adding html content, buttons for specific interactions,etc... , but this doesnt allow me to directly consult metrics data.
a typical scenario: panel with a button, on button press, a template variable is updated and a query is fired with this specific template variable. The result of the query is then written to another template variable.
So this html panel seemed like the solution I needed. I tried it out, but have some questions:
Is there a possibility to handle javascript code that is called from an event triggered in the HTML part? for instance a button click?
If not, would it be difficult to implement?
MetricsPanelCtrl -> where can I find the available properties for this ctrl? How do I access the datapoints. By trying I found some (ctrl.data[].datapoints) but would like to know all the possibilities.
Hi, I'm using the built-in textpanel a lot which gives me a lot of freedom for adding html content, buttons for specific interactions,etc... , but this doesnt allow me to directly consult metrics data.
a typical scenario: panel with a button, on button press, a template variable is updated and a query is fired with this specific template variable. The result of the query is then written to another template variable.
So this html panel seemed like the solution I needed. I tried it out, but have some questions:
Is there a possibility to handle javascript code that is called from an event triggered in the HTML part? for instance a button click?
If not, would it be difficult to implement?
MetricsPanelCtrl -> where can I find the available properties for this ctrl? How do I access the datapoints. By trying I found some (ctrl.data[].datapoints) but would like to know all the possibilities.
kind regards Pascal