maUiDateBar documentation, setting autoUpdate
-
I am not finding documentation for
maUiDateBar
, specifically presetting Auto Update parameters. I made some SWAGs with no luck, and wonder if they can be set at all. -
This will be the closest you can get to seeing how it all works and how to tie it in to other dashboard pages.
Good Luck.I've used it myself in other pages and linked it into custom components with a
controller.$inject=["maUiDateBar"];
service injector.Fox
-
Thanks, @MattFox, but I already have it working. What I was hoping for is fine-tuning parameters, e.g. Auto Update.
Hopefully more documentation will be provided in the future.
-
I believe that stuff is pre set in the browser cookies. Have a look at that with the maUiApp stuff it remembers the configuration for that there.
There won't be any docs per se, you'll simply have to go through all the source and read how it is all pieced together. -
@AldoRamos Services prefixed with
maUi
were originally not intended for public use, this is why it is not documented.The service code is actually located here - https://github.com/infiniteautomation/ma-dashboards/blob/main/UI/web-src/ui/services/dateBar.js
This should do the trick:
maUiDateBar.autoUpdate = true; maUiDateBar.updateIntervals = 10; maUiDateBar.updateIntervalPeriod = 'MINUTES';