-
Hi, I was wondering if there was any way to include external js libraries? I have an idea for using this panel to display some map data with the google maps api and this plugin seems perfect. Even an option like what Thank You! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hello @dean2140 I do like the idea of loading external libraries. I'll try to see if there is a good way to implement it. |
Beta Was this translation helpful? Give feedback.
-
I'm not gonna add anything to make importing external libraries directly to the panel easier. If you would like to use external libraries you could use dynamic import, but a bundler like htmlgraphics-svg-bundler-template is probably easier to work with. onInit async function init() {
await import('https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.slim.js');
jQuery('<div>Hello, World!</div>').appendTo(htmlNode.lastElementChild);
}
init(); |
Beta Was this translation helpful? Give feedback.
I'm not gonna add anything to make importing external libraries directly to the panel easier.
If you would like to use external libraries you could use dynamic import, but a bundler like htmlgraphics-svg-bundler-template is probably easier to work with.
onInit