Issue in loading javascript file.

0
Hi Everyone, I am trying to create a dashboard with drag and drop features . following is the code in javascript/Html Snippet: This is giving  error:  $(...).gridstack is not a function TypeError: $(...).gridstack is not a function I have added all the javascript file inside a folder theme->js This my components.json file: {     "files": {         "css": ["styles/web/css/main.css","css/bootstrap.min.css"],         "js": [ "mxclientsystem/mxui/mxui.js", "js/jquery.min.js", "js/jquery-ui.min.js", "js/gridstack.all.js", "js/jquery.easing.min.js", "js/lodash.min.js", "js/jquery.easing.min.js", "js/bootstrap.min.js" ]     },     "cachebust": "{{cachebust}}" }  
asked
2 answers
0

Can you try to put your library file in the index.html file ? 

something like : <script src="yourLibrary..."></script>

it may fix your problem.

 

 

answered
0

Hi Sakshi,

There are two drag and drop widgets in the Appstore (https://marketplace.mendix.com/link/component/36773 and https://marketplace.mendix.com/link/component/1856). Perhaps you could try one of those, which is probably easier than writing your own code?

Cheers,

Daan

answered