I’ve created a widget which I want to load via AMD in dojo 1.7. I want to be able to place my custom widgets libs on the same level as the dojo folder.
It appears that it always uses the base path of dojo and so need to put widgets inside the dojo folder, however libs that come with dojo doesnt need to follow that rule eg dijit and dojox.
I’ve tried changing the base path and a
<script>
dojoConfig = {
isDebug: true,
parseOnLoad: true,
async:true
//,baseUrl: '../src/js'
};
</script>
<script type="text/javascript" src="js/dojo/dojo.js"></script>
<script type="text/javascript">
console.log('start1');
require(
["dojo/ready"
,"dijit/Tree"
,"screeningResults/ScreeningResults"
],
function(ready,tree, screening){
var screeningUI = new screening({}, "screeningUI");
screeningUI.startup();
}
);
</script>
Supposing your directory structure is like this :
You should do :