Download Builder for DataTables
Download Builder for DataTables
duselguy
Posts: 24Questions: 3Answers: 0
Hello,
are there plans to create Download Builder for DataTables like it is in jQuery UI (http://jqueryui.com/download/) or Highcharts (http://www.highcharts.com/download) ?
Thanks
This discussion has been closed.
Replies
Yes :-)
Likely June for the launch.
Allan
Thank you.
Preparing of suggestions ...
Hello, posted yesterday my suggestions. Still are moderating (?)
The suggestions with check boxes to include/exclude components:
Thanks
Yes it was moderated - thanks for pointing that out. The is so much spam it is easy to miss some!
Thanks for your suggestion. It is along the lines of what I am thinking about :-)
Allan
Hello,
related to the current Download Builder:
it's very difficult to explain what is wrong if all looks wrong (at least for me):
Please, go ahead - I'll use the full version with the manual deletion of unnecessary files.
Thanks,
LP
1) Minification - Minify/Debug has no effect - min and full versions are present in zip
This is correct - but the URLs shown in the download builder will correctly refer to which one you selected. You can then easily change between the two as needed for development and production. I didn't see the need to throw away the one that wasn't selected.
2) Styling - DataTables has no effect - lot of CSSs in zip
I'm not sure what you mean by "DataTables has no effect" - however, you are correct that there are a lot of files in the downloaded package. However, as the download builder shows, only the
datatables(.min).css
file should be included. The source files for all the libraries that are selected as part of the download are included in the zip file (in their individual directories). You would not include them individually (unless you wanted to).So yes, there are unnecessary files in the final download, which may or may not be useful depending on your needs :-)
Allan
Hello,
first, thanks for all the work. I like working with DataTables. I was very glad to see the latest update including the download builder. However there are some problems using the download builder.
If I understand correctly the concatenate option just joins all the included files into one single file with possible minification. I noticed that if AMD define (like requireJS) is available each extension registers itself as a module using define. Since the modules are not named it looks like it could be a problem when all the extensions are in the same file. There is no way to determine which file and module to load by requireJS when some module is requested.
Also downloaded file contains line like this:
which throws an error "Cannot read property 'ext' of undefined" when using requireJS to load DataTables.
If anyone could help with this problem i would be very happy. Thanks
hi,
I'm afraid I don't have an immediate fix for you. This is something that I need to address. I don't think that the download builder particularly lends itself to the AMD loader way of working - I would recommend against it for the reasons you state.
What I plan to do is create a number of repositories that will be the "distribution" repos for DataTables and its extensions, and it is them that should be used with external loaders. I'm hoping to do that sometime next month.
Allan