Facility Control

 View Only
  • 1.  DashBoard and JS Libraries Support

    Posted 02-26-2018 11:58
    Hi there!

    Another question... This time just a general question.
    DashBoard, being based on JavaScript, does it have any suopport for including different libraries?
    Thinking jQuery, or other libraries (like read from xlsx files etc... - You see where I'm going with this I suppose...)


  • 2.  RE: DashBoard and JS Libraries Support

    Ross Staff
    Posted 02-26-2018 13:57
    Yes and no.
    While DashBoard's scripting engine is built on JavaScript, the UI renderer is not based on HTML. This means that all of the standard JavaScript objects used to manipulate HTML documents (i.e. a good deal of what JQuery does) will not work as the objects/functions it is expecting to use do not exist.

    That said, we know people have had a fair bit of success using non-DOM-centric JavaScript libraries and using them directly in DashBoard.

    James


    #DashBoard


  • 3.  RE: DashBoard and JS Libraries Support

    Posted 02-27-2018 12:04
    Yeah I was kinda expecting JQuery not to work...
    But ok,cool, if I can add in a non-DOM-centric JavaScript library, I think I might get a bit further anyhow!

    Do you have a "best practise" kind of way to include these? Or just a few pointers?
    Or do you add the entire library .js file into a meta tag to use the functions?
    #DashBoard


  • 4.  RE: DashBoard and JS Libraries Support

    Ross Staff
    Posted 02-27-2018 14:49
    I would strongly-recommend using inside of a meta dag. This way you can get some reuse out of the library and use it even if not connected to the Internet.
    #DashBoard


  • 5.  RE: DashBoard and JS Libraries Support

    Posted 03-09-2018 08:12
    I would strongly-recommend using inside of a meta dag. This way you can get some reuse out of the library and use it even if not connected to the Internet.

    Thanks once again! I'll give it a go and see how it turns out! Thanks!
    #DashBoard


  • 6.  RE: DashBoard and JS Libraries Support

    Posted 12-29-2023 09:45

    Hi All 🙂

    Can anyone provide more specific guidance or an example of exactly how to integrate a JS library in dashboard?

    Thank you!

    CJ



    ------------------------------
    Christopher Jones
    United States
    ------------------------------