I want to include yahoo.js and yahoo-calendar.min.js from my custom module
basically i need to call the function from yahoo-calendar.min.js
which require yahoo.js
file, i tried to include it like this using requirejs-config.js
from my custom module:
var config = {
"map": {
"*": {
YAHOO: 'Vendor_Module::js/yahoo-calendar.min'
}
}
};
i'm gonna use YAHOO
as the alias , but i don't know where to put the yahoo.js
file
the usage will be like this:
YAHOO.namespace("example.calendar");
YAHOO.example.calendar.init = function() {
YAHOO.example.calendar.cal1 = new YAHOO.widget.Calendar("cal1",'container-id');
YAHOO.example.calendar.cal1.render();
}
YAHOO.util.Event.onDOMReady(YAHOO.example.calendar.init);