Buttons 1.2.2
DataTables CDN files for Buttons 1.2.2. This software was originally released on 2nd August, 2016.
Release notes
This is a bug fix release of Buttons that addresses a number of issues that have been identified since the last release, including compatibility with jQuery 3 for the button collections and Excel export with HTML entities.
Although a patch release there are also a couple of minor new features including easy access to the notes for formatting methods, more options can now be specified as callbacks and text style options for Excel export.
New
- New: The header, footer and body formatting methods of the
format
option inbuttons.exportData()
will now pass in the node for the cell that is being rendered. This can make it much easier to get certain text content from the DOM. - New:
message
options forprint
andpdf
buttons now allow a function to be given which will be evaluated when the PDF is created - New:
csv
andcsvHtml5
types now have abom
option that can be used to tell the CSV button types to include the BOM or not (default false). - New: Add additional styles for exporting to Excel - text alignment, justification, 90 degrees rotates and wrapped.
Fixes
- Fix: Unable to add buttons dynamically if no buttons are present
- Fix: Remove class that was added to the background container when removed. This allows multiple different background classes to be used.
- Fix: IE support for printing - IE9 was throwing an error due to a workaround introduced for Edge. Now try/catch to allow for both.
- Fix: Disable UTF-8 BOM by default for generated CSV files. The Unicode standard recommends that it should not be used.
- Fix: Copy large amount of data automatically with
execCommand
could fail. If that occurs, the failure state is now detected and falls back to the manual cmd/ctrl+c option. - Fix: Detect HTML5 copy success, fall back to CTRL+C on failure
- Fix: Allow pdfMake and JSZip to be loaded after the HTML5 buttons file
- Fix:
buttons.exportData()
's body format function had the row and column index parameters passed in the wrong way around. - Fix: HTML entities should not be escaped for XML node creation in Excel export button types.
- Fix: Compatibility with jQuery 3 when using a collection of buttons
- Fix:
buttons().container()
would not work if a button set had no buttons in it.
Files
js
- //cdn.datatables.net/buttons/1.2.2/js/buttons.bootstrap.js
- //cdn.datatables.net/buttons/1.2.2/js/buttons.bootstrap.min.js
- //cdn.datatables.net/buttons/1.2.2/js/buttons.bootstrap4.js
- //cdn.datatables.net/buttons/1.2.2/js/buttons.bootstrap4.min.js
- //cdn.datatables.net/buttons/1.2.2/js/buttons.colVis.js
- //cdn.datatables.net/buttons/1.2.2/js/buttons.colVis.min.js
- //cdn.datatables.net/buttons/1.2.2/js/buttons.flash.js
- //cdn.datatables.net/buttons/1.2.2/js/buttons.flash.min.js
- //cdn.datatables.net/buttons/1.2.2/js/buttons.foundation.js
- //cdn.datatables.net/buttons/1.2.2/js/buttons.foundation.min.js
- //cdn.datatables.net/buttons/1.2.2/js/buttons.html5.js
- //cdn.datatables.net/buttons/1.2.2/js/buttons.html5.min.js
- //cdn.datatables.net/buttons/1.2.2/js/buttons.jqueryui.js
- //cdn.datatables.net/buttons/1.2.2/js/buttons.jqueryui.min.js
- //cdn.datatables.net/buttons/1.2.2/js/buttons.print.js
- //cdn.datatables.net/buttons/1.2.2/js/buttons.print.min.js
- //cdn.datatables.net/buttons/1.2.2/js/buttons.semanticui.js
- //cdn.datatables.net/buttons/1.2.2/js/buttons.semanticui.min.js
- //cdn.datatables.net/buttons/1.2.2/js/dataTables.buttons.js
- //cdn.datatables.net/buttons/1.2.2/js/dataTables.buttons.min.js
swf
css
- //cdn.datatables.net/buttons/1.2.2/css/buttons.bootstrap.css
- //cdn.datatables.net/buttons/1.2.2/css/buttons.bootstrap.min.css
- //cdn.datatables.net/buttons/1.2.2/css/buttons.bootstrap4.css
- //cdn.datatables.net/buttons/1.2.2/css/buttons.bootstrap4.min.css
- //cdn.datatables.net/buttons/1.2.2/css/buttons.dataTables.css
- //cdn.datatables.net/buttons/1.2.2/css/buttons.dataTables.min.css
- //cdn.datatables.net/buttons/1.2.2/css/buttons.foundation.css
- //cdn.datatables.net/buttons/1.2.2/css/buttons.foundation.min.css
- //cdn.datatables.net/buttons/1.2.2/css/buttons.jqueryui.css
- //cdn.datatables.net/buttons/1.2.2/css/buttons.jqueryui.min.css
- //cdn.datatables.net/buttons/1.2.2/css/buttons.semanticui.css
- //cdn.datatables.net/buttons/1.2.2/css/buttons.semanticui.min.css
- //cdn.datatables.net/buttons/1.2.2/css/common.scss
- //cdn.datatables.net/buttons/1.2.2/css/mixins.scss