{hero}

DataTable.fileSave()

Since: Buttons 1.2.0

Save a file that has been created on the client-side.
Please note - this property requires the Buttons extension for DataTables.

Description

Buttons makes use of Eli Grey's outstanding FileSaver.js library in order to be able to provide its client-side file creation and download methods. This method exposes Button's built in FileSaver.js so you can use it in other applications, or for custom buttons.

For full details of how to use FileSaver, please refer to the FileSaver.js documentation.

Type

function fileSave( data, filename [, disableAutoBOM )

Description:

Create and download a file on the client-side using information passed to this method.