Js devexpress
![js devexpress js devexpress](https://js.devexpress.com/Content/images/doc/19_2/DataGrid/TotalSummary.png)
In order to achieve the compatibility with older browsers Babel will compile the newer ES6 features back into ES5 Javascript. Since version 3.8, Moodle supports ECMAScript 2015 features (aka ES6) in a cross browser compatible way thanks to Babel JS. To edit or create an AMD module in Moodle you need to do a couple of things.
![js devexpress js devexpress](https://js.devexpress.com/Content/Images/Grid/img7.png)
![js devexpress js devexpress](https://js.devexpress.com/Content/images/doc/20_2/DataGrid/visual_elements/adaptive-column.png)
This is a standard API for creating Javascript modules and you will find many useful third party libraries that are already using this format. Since version 2.9, Moodle supports Javascript modules written using the Asynchronous Module Definition ( AMD) API. How do I write a Javascript module in Moodle?
JS DEVEXPRESS CODE
This is good because:Ī) Each smaller piece is simpler to understand / debugĬ) You can re-use common code instead of duplicating it Why should I package my code as a module?īy packaging your code as a module you break your code up into smaller reusable pieces. Javascript Modules What is a Javascript module and why do I care?Ī Javascript module is nothing more than a collection of Javascript code that can be used (reliably) from other pieces of Javascript. 2.14 But I have a mega JS file I don't want loaded on every page?.2.13.1 npm-shrinkwrap.json sha1 / sha512 changes.2.11 Including an external javascript/jquery library.2.9 "Hello World" I am a Javascript Module.2.8 Minimum (getting started) module for plugins.2.7 ES6 Modules (Moodle v3.8 and above).2.5 Development mode (Moodle v3.10 and above).2.4 Development mode (Moodle v3.8 and above).2.3 Development mode (Moodle v2.9 to v3.7).2 How do I write a Javascript module in Moodle?.1.2 Why should I package my code as a module?.1.1 What is a Javascript module and why do I care?.