TimeFilter in Custom Plugin

Is there any way to get the values of the time filter in a custom page on a plugin?

Screenshot 2021-06-23 014107

I would like to be able to read the values to display on the page as well as hook into the refresh event when the time filter is updated.

This is the closest reference I have been able to find and appears to be very out of date. Get time from Time Range from custom plugin

Thanks

Hi @cjord!

You need to use data plugin. It will be available on time filter services:
Something like: data.query.timefilter.timefilter.getTime()

And this is how it used in one of our developer examples plugins:

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.