The DataTables Drupal module integrates the smart DataTables plugin (originally jQuery based but in future vanilla JS) written by awesome Allan Jardine into Drupal as a tables views style and a callable theme function. DataTables lets you add dynamic features to tables which usually would need a page to reload, including:
- Variable length pagination
- On-the-fly search and filtering without page reload
- On-the-fly Sorting with data type detection
- Smart handling of column widths
- Very flexible and themeable
- And more to come...
"Beautify your complex tables"
Datatables is for tables what Quicktabs is for tabs.
Web resources
- DataTables plugin project website.
- DataTables look and feel demo pages on the website.
- Demonstration of DataTables with Drupal in this Youtube tutorial.
Dependency
- At the moment, you need to download and install the DataTables library manually into your libraries folder. Work on CDN support and automatic dependency management while installing is in progress.
- While there is work in progress for all branches to upgrade to the latest DataTables version (1.10.x), it momentary only works with DataTables <= 1.9.x. Since it's not listed in the projects download page, you will have to download it directly from here.
- Make sure the DataTables-x.x.x.zip archive is uncompressed and the folder renamed to "datatables" in the root of the library directory. The path would be:
/libraries/datatables/media/js/jquery.dataTables.min.js
DataTables library updates
There are plans to find a future proof solution that the Drupal module implementation of the library is always updated supporting the latest DataTables library update. If you are interested in being informed and helping regarding the plans, please join us and follow this [META] issue: #2999400: [META] Keep track of DataTables library versions an its move away from jQuery. If you want to help providing patches supporting the latest DataTables library version:
- the latest DataTables library version worked on by awesome Allan Jardine can be found on GitHub,
- the latest officially supported library version download can be found on the project website.
Thanks and Credits for extraordinary contribution
List of contributors which have helped massively in the issue queue and further development of the project in the last years.
Project information
- Module categories: Content Editing Experience, Content Display, Site Structure
- Ecosystem: jQuery libraries, Javascript Tools
- 3,476 sites report using this module
- Created by duellj on , updated
- Stable releases for this project are covered by the security advisory policy.
Look for the shield icon below.
Releases
This is a bug fix release and final Drupal 10 supporting release based on 2.x dev branch and latest commits.
Development version: 2.x-dev updated 27 Jan 2024 at 01:20 UTC
Release candidate for 8.x-1.0
Development version: 8.x-1.x-dev updated 16 Aug 2020 at 20:56 UTC
Development version: 7.x-1.x-dev updated 7 Jul 2016 at 21:03 UTC