Dowloading zip only gives base JS and CSS files

Dowloading zip only gives base JS and CSS files

NewsupernatNewsupernat Posts: 1Questions: 1Answers: 0

https://datatables.net/download/#bs5/jszip-3.10.1/pdfmake-0.2.7/dt-2.3.7/af-2.7.1/b-3.2.6/b-colvis-3.2.6/b-html5-3.2.6/b-print-3.2.6/cr-2.1.2/date-1.6.3/fc-5.0.5/fh-4.0.6/kt-2.12.2/r-3.0.8/rg-1.6.0/rr-1.5.1/sc-2.4.3/sb-1.8.4/sp-2.3.5/sl-3.1.3/sr-1.4.3

Whenever I try to download a Datatables with the Zip file option, I only have the following files:
- datatables.css
- datatables.js
- datatables.min.css
- datatables.min.js

I tried adding JQuery/Bootstrap 5 in the download, but it was still the same list of files. I also tried running Datatables with only the given files, but it did not work as it did before.
I also tried to make smaller bundles, but to no avail.
If I remember correctly, all of the plugins would also be present in the folder when I downloaded the older versions.

Was there a change in how the zip download works?

This question has an accepted answers - jump to answer

Answers

  • kthorngrenkthorngren Posts: 22,412Questions: 26Answers: 5,153
    Answer ✓

    The downloaded files contain all the selected libraries. Open on of the files and you will see this (from your example link above):

    • Included libraries:
      • JSZip 3.10.1, pdfmake 0.2.7, DataTables 2.3.7, AutoFill 2.7.1, Buttons 3.2.6, Column visibility 3.2.6, HTML5 export 3.2.6, Print view 3.2.6, ColReorder 2.1.2, DateTime 1.6.3, FixedColumns 5.0.5, FixedHeader 4.0.6, KeyTable 2.12.2, Responsive 3.0.8, RowGroup 1.6.0, RowReorder 1.5.1, Scroller 2.4.3, SearchBuilder 1.8.4, SearchPanes 2.3.5, Select 3.1.3, StateRestore 1.4.3

    This question has been asked before and Allan explained he removed the individual files from the download.

    As shown in the download tab all you need to use is these two statements:

    <link href="DataTables/datatables.min.css" rel="stylesheet">
     
    <script src="DataTables/datatables.min.js"></script>
    

    You might be experiencing issue if you are still loading the individual libraries as this will cause them to be loaded twice. Loading a .js more than once usually doesn't work.

    If you still have issues please post a link to a test case replicating the issues.
    https://datatables.net/manual/tech-notes/10#How-to-provide-a-test-case

    Kevin

  • allanallan Posts: 65,610Questions: 1Answers: 10,909 Site admin

    Many years ago, the download builder used to include the individual files, as well as the combined files, which is probably what you are remembering. Unfortunately it led to a lot of people being confused as to what files they should include.

    Now the download zip package just includes the combined files based on the options selected.

    Allan

Sign In or Register to comment.