use require.js to load datatables
use require.js to load datatables

when i use require.js to load datatables, all the plugins,such as select, don't init, and it causes select on table don't take effect
This discussion has been closed.
when i use require.js to load datatables, all the plugins,such as select, don't init, and it causes select on table don't take effect
Answers
Per the forum rules, please link to a test case showing the issue. We would need to know, at the very least, how you have configured RequireJS and what modules you are loading.
Allan
when i load all plugins one by one ,it works fine.
but when i load the all-in-one packaged file,it doesn't work.
here is my require config.
it works fine.
but the config below doesn't work.
The plug-ins will do their own
require()
- specificallyrequire('datatables.net');
which might be the issue here. It you were to rename "datatables" as "datatables.net" does it then work?Thanks,
Allan
i tried, it doesn't work
Could you give a link to the page so I can take a look and debug it please.
Allan