Deciding which DataTables files to include in my html.

Deciding which DataTables files to include in my html.

wyattbikerwyattbiker Posts: 25Questions: 14Answers: 0

I have a project using Bootstrap 3+ and jquery 2+ that I provide.

When I download from .zip file I get a folder with all the .js and .css files for all the frameworks.

My question is. Which script and link files do I need from DataTables?

I assume I need the min versions of datatables.bootstrap.js and css.

Do I also need jquery.datables.js and css? Also, do I need the jquery.dataTables_themeroller.css

See attached. Thanks!

This question has an accepted answers - jump to answer

Answers

  • kthorngrenkthorngren Posts: 21,174Questions: 26Answers: 4,923
    Answer ✓

    You can look at the Bootstrap example. It will show you the minimum needed for a basic Datatables with Bootstrap implementation. Additional JS and CSS will be needed as you start using additional features.

    https://datatables.net/examples/styling/bootstrap.html

    Kevin

  • wyattbikerwyattbiker Posts: 25Questions: 14Answers: 0

    I appreciate the reply. When is jquery.dataTables_themeroller.css used?

  • kthorngrenkthorngren Posts: 21,174Questions: 26Answers: 4,923

    Maybe this will help to explain:
    https://datatables.net/examples/styling/jqueryUI.html

    Kevin

  • allanallan Posts: 63,214Questions: 1Answers: 10,415 Site admin

    jquery.dataTables_themeroller.css

    Never. That's a really old file that shouldn't be used now.

    Use the download builder to create the files that you need. It will show you the HTML that you need to include at the bottom of the page - just a single link tag and a single script tag.

    Allan

  • wyattbikerwyattbiker Posts: 25Questions: 14Answers: 0

    Problem with download builder is there is no download button that I could see. I don't want to use a hosted script. But thanks for the reply on themeroller.

  • allanallan Posts: 63,214Questions: 1Answers: 10,415 Site admin

    At the bottom of the download builder click the "Local files" option to get a download button.

    Allan

This discussion has been closed.