Dojox import for custom widgets

2
Dojox js libraries are not available by default, we have many dojo widget that we created and we would want to transfer over to create Mendix custom widgets with. The problem is that including the dojox library into all custom widgets would make the deployment VERY slow, there is way too many files. We tried to copy the dojox directory into mxclientsystem directory and it does seem to work but not for all dojox widgets. Is there a solution for this? Thank you
asked
2 answers
2

I think, normally, a widget does not need all stuffs in Dojox, so you have to find which libraries (and their dependencies) you need and add them into your widget. Second, it may not be a good idea to copy your libraries into mxclientsystem because you are not always able to do that, you have to do that for all the new releases of Mendix, not all applications need them, and including libs in Widget is always nicer.

answered
0

You could load the dojo libraries from your project's index page using standard javascript.

<script src="//ajax.googleapis.com/ajax/libs/dojo/1.6.1/dojo/dojo.xd.js"></script>
answered