Pagination

Pagination

annetannet Posts: 12Questions: 1Answers: 0
edited April 2012 in Plug-ins
At the moment I have tables making use of various functions of DataTables. Now I work on an application that has tables for which I only need pagination functionality. Is there a way to have a JavaScript file that just implements pagination functionality?

Kind regards,

Annet

Replies

  • allanallan Posts: 63,680Questions: 1Answers: 10,498 Site admin
    Hi Annet,

    Yes absolutely - you can use these options to disable the DataTables features you don't want: http://datatables.net/usage/features

    Allan
  • annetannet Posts: 12Questions: 1Answers: 0
    Hi Alan,

    Thanks for your reply. jQuery.dataTables.min.js is 74KB large. Is there a way to reduce the file size to just the code I need to have pagination functionality? I'd like to use it in combination with the .js file from this blog post: http://datatables.net/blog/Twitter_Bootstrap_2

    Kind regards,

    Annet.
  • allanallan Posts: 63,680Questions: 1Answers: 10,498 Site admin
    Currently the only way of doing that is by modifying the script itself and removing what you don't what. There isn't modular way of doing that yet, but this is planned for future version of DataTables.

    Allan
  • annetannet Posts: 12Questions: 1Answers: 0
    Thanks for your reply. I'll give it a try.

    Annet.
This discussion has been closed.