[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to make a new web component


Le 07/07/2025 à 09:49, Fabien Bodard a écrit :
I begin to understand the basis but I stuck on adding this  (LeafLet map) :

<link rel="stylesheet" href="https://unpkg.com/leaflet@1.9.4/dist/ leaflet.css <https://unpkg.com/leaflet@1.9.4/dist/leaflet.css>" integrity="sha256-p4NxAoJBhIIN+hmNHrzRCf9tD/miZyoHS5obTRR9BMY=" crossorigin="" />

<script src="https://unpkg.com/leaflet@1.9.4/dist/leaflet.js <https:// unpkg.com/leaflet@1.9.4/dist/leaflet.js>" integrity="sha256-20nQCchB9co0qIjJZRGuk2/Z9VM+kNiyxNV1lvTlZBo=" crossorigin=""></script>

How I'm I supposed to do to add this pre requise. ?

(I've read a big part of the web.gui code but nothing about external js code)

Thank you
--
Fabien Bodard

As I said in my previous answer, if you need external ressources, URL must be associated with properties that allows to modify them.

Inside 'gb.web.gui', internally, I can add some methods to provide support for declaring external javascript in a control.

Regards,

--
Benoît Minisini.


Follow-Ups:
Re: How to make a new web componentFabien Bodard <gambas.fr@xxxxxxxxx>
References:
How to make a new web componentFabien Bodard <gambas.fr@xxxxxxxxx>