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
- Basic initialisation
- File export
- Custom button
- Class names
- Keyboard activation
- Collections
- Multi-level collections
- Auto close collection
- Plug-ins
- `new` initialisation
- 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
- Tab separated values
- Include footer in export
- 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)