1
0
mirror of https://github.com/DataTables/DataTables.git synced 2024-11-29 11:24:10 +01:00
DataTables is a table enhancing plug-in for the jQuery Javascript library, adding sorting, paging and filtering abilities to plain HTML tables with minimal effort. https://datatables.net/
Go to file
Allan Jardine 60745afb14 New: Bootstrap 4 integration with DataTables
- Bootstrap 4 is currently in beta so things can, and probably will
  still change. Bootstrap 4 packages for DataTables won't be made
  available until at least a beta release of Bootstrap 4.
- A few things have changed in Bootstrap 4 and rather than trying to
  make the exisiting Bootstrap files work for both BS3 and BS4 it makes
  sense to offer both. We'd need to detect which version of BS is loaded
  and that can be quite unreliable (and delayed since the body would
  need to be available).
- Pagingation requires a couple of classes, but no change in structure
- BS4 don't include icons any more, so need to use UTF8 arrows to show
  sorting (don't particularly want other dependencies, although it is
  easy to add with CSS if you want more icon control)
- Outstanding issue: The select element for paging control is not of a
  consistent height with the search input. This appears to be a
  Bootstrap issue: https://github.com/twbs/bootstrap/issues/17194
2016-02-03 11:40:26 +00:00
examples New: Bootstrap 4 integration with DataTables 2016-02-03 11:40:26 +00:00
media Fix: Remove legacy TableTools integration from Bootstrap file 2016-02-03 11:39:57 +00:00
.datatables-commit-sync New: Bootstrap 4 integration with DataTables 2016-02-03 11:40:26 +00:00
.gitignore Add minified files to built repo 2014-06-23 15:40:22 +01:00
bower.json Fix: The number rendering helper will now automatically escape HTML entities to help prevent possible XSS attacks if using a number renderer. 2016-01-07 15:24:53 +00:00
composer.json Fix: The number rendering helper will now automatically escape HTML entities to help prevent possible XSS attacks if using a number renderer. 2016-01-07 15:24:53 +00:00
Contributing.md Update: Contributing documentation to direct support requests to the 2015-04-06 22:08:10 +01:00
dataTables.jquery.json Fix: The number rendering helper will now automatically escape HTML entities to help prevent possible XSS attacks if using a number renderer. 2016-01-07 15:24:53 +00:00
license.txt Update license.txt 2015-06-22 17:24:11 +02:00
package.json Fix: The number rendering helper will now automatically escape HTML entities to help prevent possible XSS attacks if using a number renderer. 2016-01-07 15:24:53 +00:00
Readme.md Use the "plug-in" interface rather than the "pug-in [sic] interface". 2015-11-15 22:13:41 +10:30

DataTables plug-in for jQuery

DataTables is a table enhancing plug-in for the jQuery Javascript library, adding sorting, paging and filtering abilities to plain HTML tables with minimal effort. The stated goal of DataTables is:

To enhance the accessibility of data in HTML tables.

To meet this goal, DataTables is developed with two distinct groups of users in mind:

  • You the developers using DataTables. For developers DataTables provides a wide array of options for how data should be obtained, displayed and acted upon, along with an extensive API for accessing and manipulating the table.

  • End users. For those using the interface DataTables presents, actions to get the most from the information contained in tables, such as sorting and filtering, along with paging and scrolling of the data in table, are easy to use, intuitive and fast.

Installation

In most cases, to use DataTables all you need to do is include jQuery, the DataTables Javascript and DataTables CSS files in your HTML page. See the DataTables manual for details on how to do this using the latest version of DataTables.

Usage

In its simplest case, DataTables can be initialised with a single line of Javascript:

$('table').dataTable();

where the jQuery selector is used to obtain a reference to the table you want to enhance with DataTables. Optional configuration parameters can be passed in to DataTables to have it perform certain actions by using a configuration object as the parameter passed in to the DataTables constructor. For example:

$('table').dataTable( {
  paginate: false,
  scrollY: 300
} );

will disable paging and enable scrolling.

A full list of the options available for DataTables are available in the documentation.

Documentation

Full documentation of the DataTables options, API and plug-in interface are available on the DataTables web-site. The site also contains information on the wide variety of plug-ins that are available for DataTables, which can be used to enhance and customise your table even further.

Support

Support for DataTables is available through the DataTables forums and commercial support options are available.

License

DataTables is release under the MIT license. You are free to use, modify and distribute this software, as long as the copyright header is left intact (specifically the comment block which starts with /*!.