I have a JavaScript calendar in a .js file, which I used in an html page and I’m trying to use it on a metro app. How can I import it and call from it in the data.js default file? (The data.js file starts with an “(“) And then how can I create a calendar Element to use on the “element” field of the tile item?
If I manage to import into the data.js file, and create an element using createElement function suggested by Microsoft, will it work properly, since it requires that external JavaScript file? If not, what can I do?
I have a JavaScript calendar in a .js file, which I used in an
Share
In addition to referencing the script in your HTML page, like so:
you can drag the file from Solution Explorer and drop it at the top of the .js file where you want to use it, and it will provide you with a reference that looks like this:
Once you have that reference, Visual Studio will give you nice Intellisense for the .js file when you reference its functions.