Custom pagination plugin

Custom pagination plugin

david1pagedavid1page Posts: 1Questions: 1Answers: 0

We have been using the pagingType option to use a custom pagination plugin however after upgrading to 2.2.2 we are getting an error stating plugin is not a function. I tried other pagination plugins from https://www.npmjs.com/package/datatables.net-plugins?activeTab=code and got the same error.

Anyone know how to fix this?

Answers

  • allanallan Posts: 64,376Questions: 1Answers: 10,628 Site admin

    Hi,

    What paging plugin are you using? The old ones from 1.x are not compatible with v2 - it uses a different structure. A number of the plugins haven't yet been rewritten or updated yet I'm afraid.

    I did rewrite the input paging plugin which might be of interest? I've also for a proof of concept for a similar one with a select instead of an input if that might be of interest?

    Allan

  • davidjpagedavidjpage Posts: 3Questions: 2Answers: 0

    Thanks Allan, this helps. Do you have a JS version of the example?

  • kthorngrenkthorngren Posts: 21,961Questions: 26Answers: 5,070

    Not sure I understand your question but maybe you are asking how to load the CSS and JS files on a standard web page. Use the links shown in the sources section and create the appropriate link and script tags. Is this what you are asking for?

    Kevin

  • allanallan Posts: 64,376Questions: 1Answers: 10,628 Site admin

    It's linked in the post. Or were you looking for something else?

    Allan

Sign In or Register to comment.