Call remote css file from widget.js

0
Hi team, I'm looking to add a css file sitting on a remote server to the widget I'm building.  Are there any examples out in the wild that show a simple call out from the widget.js or another way one would add the call to the css file in the widget package? Thank you for your help!   Jeff G
asked
2 answers
0

Hi Jeffrey,

 

You can check out this widget 

https://github.com/rik-bos/StyleSheetSwitcher

 

Also the style sheet is linked on the index file. You could edit the html of the index file and link your external style sheet. 

answered
0

Maybe using mxui/dom which has "addCss" could enable you to do so:

https://apidocs.mendix.com/7/client/module-mxui_dom.html

 

answered