download tool - where's the javascript?

download tool - where's the javascript?

fredwillmorefredwillmore Posts: 1Questions: 1Answers: 0

I'm using the datatables download tool to generate a custom build of the datatables library (specifically, I want the html5 export button functionality):

https://datatables.net/download/#dt/jszip-2.5.0,pdfmake-0.1.18,dt-1.10.9,b-1.0.3,b-html5-1.0.3

This produces the following bower commands:

bower install --save jszip
bower install --save pdfmake
bower install --save datatables.net-dt
bower install --save datatables.net-buttons-dt

The first two commands create JS files, normal and minified. However, the last two don't create anything except css. Where's the JavaScript?

Answers

  • allanallan Posts: 63,455Questions: 1Answers: 10,465 Site admin

    That is actually expected. The styling packages (-dt, -bs, -zf, etc) will include CSS for styling as required by that integration and any Javascript needed, if it is needed - usually setting defaults in the library, but sometimes including suitable plug-ins to make it work better with that styling library).

    In the case of DataTables (the -dt styling), there is no need for any extra Javascript since the defaults are suitable for its own styling.

    Having said that, there was a discussion yesterday on this topic, whereby it was noted that it might be useful to create just a simply proxy JS file for the cases where extra scripting isn't needed.

    Allan

This discussion has been closed.