How to react on time frame changes in Query Control?

Hi guys! First post here :slight_smile:

I am currently developing a Grafana datasource plugin. I am trying to change my query_html file depending on what time frame the user selects. Until now, I was not able to find a callback method for that (something like onTimeIntervalChanges()). Is there a way to implement that? Or does there already exist a method that I can possible extend?

Right now it seems like the plugin goes directly to my datasource code when I change the time frame. I would love to change that.

Any hints on that are greatly appreciated.

Cheers!