-
"Hi, I'm attempting to create my own work shift selector using this plugin, and I'm wondering if there's any way to modify the dashboard variables 'timeFrom' and 'timeTo'? <a href="http://localhost:3000/d/uid/dashboard?from=1696075200000&to=1696104000000">
<button id="btn"> change interval </button>
</a> |
Beta Was this translation helpful? Give feedback.
Answered by
frogg1ven
Feb 8, 2024
Replies: 1 comment 7 replies
-
You can use htmlGraphics.locationService.push which is a wrapper around history.pushState. htmlGraphics.locationService.push("http://localhost:3000/d/uid/dashboard?from=1696075200000&to=1696104000000") Example with a button element const btn = htmlNode.querySelector("button");
btn.addEventListener("click", () => {
htmlGraphics.locationService.push("http://localhost:3000/d/uid/dashboard?from=1696075200000&to=1696104000000")
}); |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This solution worked, however instead of providing the entire URL as an argument, only the endpoint needs to be specified in the following manner:
Thank you for the quick response.