Buttons for DataTables
The Buttons extension for DataTables provides a common set of options, API methods and styling to display buttons on a page that will interact with a DataTable. The core library provides the based framework upon which plug-ins can built.
There are four plug-ins that are part of the core Buttons software providing various utilities:
- HTML5 export buttons - Copy to clipboard, Save to Excel, CSV and PDF
- Print view
- Column visibility buttons
Other extensions for DataTables also provide buttons - Editor for example makes the create
, edit
and remove
buttons available.
The examples presented here give an introduce to how Buttons can be used, the API and its various core plug-in buttons.
Basic initialisation
- Initialisation: Basic
- Initialisation: Top level `buttons` option
- Initialisation: instance
- Initialisation: Legacy `dom` option
- File export
- Custom button
- Class names
- Keyboard activation
- Collections
- Multi-level collections
- Auto close collection
- Plug-ins
- Multiple button groups
- Page length (button)
- Page length (select)
- Select integration - export selected rows
- Custom HTML in Buttons Collection
- Space between buttons
HTML 5 data export
- HTML5 export buttons
- Export titles and messages
- Complex table headers - all header rows
- Exclude footer in export
- Tab separated values
- Complex table headers - selected header rows
- File name
- Copy button internationalisation
- Column selectors
- Format output data - orthogonal data
- Format output data - export options
- Excel - auto filter
- Excel - Cell background
- Excel - Bold text
- Excel - Customise borders
- PDF - message
- PDF - page size and orientation
- PDF - image
- PDF - open in new window
- Custom file (JSON)