• Register
    • Login
    • Search
    • Recent
    • Tags
    • Popular

    Please Note This forum exists for community support for the Mango product family and the Radix IoT Platform. Although Radix IoT employees participate in this forum from time to time, there is no guarantee of a response to anything posted here, nor can Radix IoT, LLC guarantee the accuracy of any information expressed or conveyed. Specific project questions from customers with active support contracts are asked to send requests to support@radixiot.com.

    Radix IoT Website Mango 3 Documentation Website Mango 4 Documentation Website

    maUiDateBar documentation, setting autoUpdate

    User help
    3
    5
    577
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • AldoRamos
      AldoRamos last edited by

      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.

      1 Reply Last reply Reply Quote 0
      • MattFox
        MattFox last edited by MattFox

        https://github.com/infiniteautomation/ma-dashboards/blob/main/UI/web-src/ui/components/dateBar/dateBar.js

        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

        Do not follow where the path may lead; go instead where there is no path.
        And leave a trail - Muriel Strode

        1 Reply Last reply Reply Quote 0
        • AldoRamos
          AldoRamos last edited by

          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.

          1 Reply Last reply Reply Quote 0
          • MattFox
            MattFox last edited by

            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.

            Do not follow where the path may lead; go instead where there is no path.
            And leave a trail - Muriel Strode

            1 Reply Last reply Reply Quote 0
            • Jared Wiltshire
              Jared Wiltshire last edited by

              @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';
              

              Developer at Radix IoT

              1 Reply Last reply Reply Quote 1
              • First post
                Last post