Adding JavaScript

Your module can optionally include JavaScript files which will be included when the module is used in a app.

This JavaScript is normally used to offer a cleaner interface to the underlying module functionality, and do any required argument pre-processing.

Your module should offer an API under the forge global object, e.g. forge.my_module_name.

To include JavaScript in your module, create module/javascript/module.js and re-generate the inspector projects.

For example:

Adding JavaScript