$.fn.dataTable.moment is not a function error
$.fn.dataTable.moment is not a function error
KashyapShivani
Posts: 15Questions: 3Answers: 0
All js are added which need to use this, still its gives error
I also maintain the sequence of js file
This question has accepted answers - jump to:
This discussion has been closed.
Answers
Hi @KashyapShivani ,
Have you also included the Moment.js source too?
Cheers,
Colin
yes,I include moment.min.js and dateTime-moment.js
Maybe you are loading the JS in the wrong order or there is a problem loading one of them. Its hard to say without seeing your page. Can you post a link to your page or a test case replicating the issue?
https://datatables.net/manual/tech-notes/10#How-to-provide-a-test-case
Kevin
This is order of add js file where newMoment is moment.min.js and jqdataTablesSortDate is jquery.dataTables.js
You'll need to load Moment.js before DataTables. If no joy, please link to a test case.
I also do that still its doesn't work fine,give same error
You have been asked - twice - to provide a test case.
https://datatables.net/manual/tech-notes/10#How-to-provide-a-test-case
You must to add this plugin script
//cdn.datatables.net/plug-ins/1.10.25/dataRender/ellipsis.js
Full Documentation: https://datatables.net/plug-ins/dataRender/ellipsis