<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[I can&#x27;t use javascript libraries on dashboard designer]]></title><description><![CDATA[<p dir="auto">Hi!<br />
I'm trying to add a library this way</p>
<pre><code>&lt;script src="**cdn link or js file path**" type="text/javascript"&gt;&lt;/script&gt;
</code></pre>
<p dir="auto">Library cannot be defined in mango although it works in html file<br />
Just a example: i want to import jquery but I get an error like this <strong>$ is not defined</strong></p>
]]></description><link>https://forum.mango-os.com/topic/4847/i-can-t-use-javascript-libraries-on-dashboard-designer</link><generator>RSS for Node</generator><lastBuildDate>Wed, 13 May 2026 18:34:38 GMT</lastBuildDate><atom:link href="https://forum.mango-os.com/topic/4847.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 17 Jun 2020 12:09:45 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to I can&#x27;t use javascript libraries on dashboard designer on Mon, 22 Jun 2020 13:11:10 GMT]]></title><description><![CDATA[<p dir="auto">Hi @erdi-metin Just BTW Mango Automation already has a map component based on leaflet.<br />
You can view the API documents at <a href="HTTP://localhost/ui/docs/ng-mango/ma-tile-map" rel="nofollow ugc">HTTP://localhost/ui/docs/ng-mango/ma-tile-map</a></p>
]]></description><link>https://forum.mango-os.com/post/25376</link><guid isPermaLink="true">https://forum.mango-os.com/post/25376</guid><dc:creator><![CDATA[CraigWeb]]></dc:creator><pubDate>Mon, 22 Jun 2020 13:11:10 GMT</pubDate></item><item><title><![CDATA[Reply to I can&#x27;t use javascript libraries on dashboard designer on Thu, 18 Jun 2020 10:22:23 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mattfox" aria-label="Profile: mattfox">@<bdi>mattfox</bdi></a> I know how I can do it now at least. Thank you for your help :)</p>
]]></description><link>https://forum.mango-os.com/post/25353</link><guid isPermaLink="true">https://forum.mango-os.com/post/25353</guid><dc:creator><![CDATA[erdi.metin]]></dc:creator><pubDate>Thu, 18 Jun 2020 10:22:23 GMT</pubDate></item><item><title><![CDATA[Reply to I can&#x27;t use javascript libraries on dashboard designer on Thu, 18 Jun 2020 09:57:38 GMT]]></title><description><![CDATA[<p dir="auto">No, the whole purpose of the mangoUI system is it's an AngularJS single page application. If you want to write custom scripts you will have to write either AngularJS controllers or full blown components using the userModule option.</p>
<p dir="auto">There are a multitude of resources in this forum to accomplish this. If it's of any benefit, I use mapboxGLjs myself so I could probably help you get started with leaflet.<br />
Sorry it's not the news you wanted to hear, but it's how this system is designed...</p>
<p dir="auto">Fox</p>
]]></description><link>https://forum.mango-os.com/post/25352</link><guid isPermaLink="true">https://forum.mango-os.com/post/25352</guid><dc:creator><![CDATA[MattFox]]></dc:creator><pubDate>Thu, 18 Jun 2020 09:57:38 GMT</pubDate></item><item><title><![CDATA[Reply to I can&#x27;t use javascript libraries on dashboard designer on Thu, 18 Jun 2020 08:55:43 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mattfox" aria-label="Profile: mattfox">@<bdi>mattfox</bdi></a> said in <a href="/post/25348">I can't use javascript libraries on dashboard designer</a>:</p>
<blockquote>
<p dir="auto">shouldn't</p>
</blockquote>
<p dir="auto">Firstly thank you for your response,</p>
<p dir="auto">Can I use jquery or leaflet js or anything part of the mango in the script tag on dashboard designer? Not in Angular scope btw.<br />
my goal is not jquery but when i try to test it,it's not work.</p>
]]></description><link>https://forum.mango-os.com/post/25349</link><guid isPermaLink="true">https://forum.mango-os.com/post/25349</guid><dc:creator><![CDATA[erdi.metin]]></dc:creator><pubDate>Thu, 18 Jun 2020 08:55:43 GMT</pubDate></item><item><title><![CDATA[Reply to I can&#x27;t use javascript libraries on dashboard designer on Wed, 17 Jun 2020 22:19:10 GMT]]></title><description><![CDATA[<p dir="auto">The only way to do this is duplicate the /opt/mango/web/modules/MangoUI/web/index.html file to /opt/mango/overrides/web/modules/MangoUI/web/index.html and add your desired external libraries yourself if you're doing your own thing.<br />
<em>Secondly</em> jquery is already part of the mangoUI stack. You shouldn't have to add it.</p>
<pre><code>    "jquery": "^3.3.1",
    "jquery-ui": "^1.12.1",
    "jquery-ui-touch-punch-c": "^1.4.0",
</code></pre>
<p dir="auto">What are you trying to achieve?</p>
]]></description><link>https://forum.mango-os.com/post/25348</link><guid isPermaLink="true">https://forum.mango-os.com/post/25348</guid><dc:creator><![CDATA[MattFox]]></dc:creator><pubDate>Wed, 17 Jun 2020 22:19:10 GMT</pubDate></item></channel></rss>