Deciding which DataTables files to include in my html.
Deciding which DataTables files to include in my html.
wyattbiker
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
This discussion has been closed.
Answers
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
I appreciate the reply. When is jquery.dataTables_themeroller.css used?
Maybe this will help to explain:
https://datatables.net/examples/styling/jqueryUI.html
Kevin
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 singlescript
tag.Allan
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.
At the bottom of the download builder click the "Local files" option to get a download button.
Allan