How to define Module and use it in dojo with AMD?
- by Devdatta Tengshe
I am maintaining and extending an old project which was pre-AMD.
I wish to add an Chart to the application. for this, I have created a js file as follows:
define(["dojox/charting/Chart",...."dijit/Dialog","dojo/dom-construct"],
function (Chart) {
function showDailyChart(data){
//code to show the chart in a dialog
}
return…