Do I only need the minified css and js file for this plugin to work?
Do I only need the minified css and js file for this plugin to work?
I am a junior web developer and I'm working on a project for work. The senior developer has left the project, but he was using this DataTables plugin, which is awesome by the way. But we needed the buttons extensions. So I went to builder and and generated a new compressed file containing buttons. I have replaced our old files with the CSS and JS min files from the download, and everything seems to still work fine. Plus we have buttons. Was this wise? Because the download included many folders and other files I did not include into the files hosted on the site.
Answers
That is correct yes. The HTML to include is shown at the bottom of the download builder.
The directories in the zip are the component parts and you don't need to include them (indeed, don't that would be bad!).
Allan
As an additional question regarding this, am I assuming right if I....
Make a build including Bootstrap styling(not the BS library) and the components I want, choose single file and local. Then I just include datatables.js and datatables.css that's located in the root of the unzipped file? All the other folders and files are not necessary, not even datatables.bootstrap.css from the DataTables-1.10.12 folder? What are the purpose of the files in those other folders? It's a bit confusing since in the examples with bootstrap both datatables.js and datatables.bootstrap.js are included in the HTML.
When I compare the bootstrap.css and the datatables.css, they are the same except datatables.css contains a bit more code. The classes for Glyphicons are excactly the same, pointing to the same files...
Are Glyphicons supposed to be in a folder somewhere in the DataTables main folder to work?
There is some overlap with your other thread here.
They are if they contain images so the CSS can reference them, but otherwise no, they are not required.
Allam