I use the JQuery DataTables library successfully in Moodle 2, but in Moodle 3 I get errors - see below - I think with requiresjs.
Anyone successfully using DataTables? I am trying to use this library in a module, not theme wide, so that the module would work in any theme.
Ken Currie
--- Errors --
* Uncaught TypeError: $(...).DataTable is not a function
at HTMLDocument.<anonymous> (view.php?id=35:116)
at i (jquery-1.12.1.min.js:2)
at Object.fireWith [as resolveWith] (jquery-1.12.1.min.js:2)
at Function.ready (jquery-1.12.1.min.js:2)
at HTMLDocument.K (jquery-1.12.1.min.js:2)
* Uncaught Error: Mismatched anonymous define() module: function (E){return h(E,window,document)}
http://requirejs.org/docs/errors.html#mismatch
at B (require.min.js:12)
at J (require.min.js:27)
at require.min.js:27