Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Is it possible to add DataTables plugin ?
http://www.datatables.net
http://plugins.jquery.com/project/DataTables
Comments
Comment #1
raintonr CreditAttribution: raintonr commentedIt would be nice to see a Datatables module, but I can confirm that the latest (dt 1.5) works with latest jQuery shipped with Drupal.
You can write yourself a little module (guess you'd be doing this anyhow to fetch the data) and put this in the page generation code:
Where
mymodule.js
contains the ready function. Eg:Sadly the
theme_table
function doesn't put<thead>
tags in so I had to write my own, but aside from that looks to work just fine.Unpack the dt zip file into your module directory and symlink
dataTables
to it (so you can easily switch between versions).Comment #2
Skirr CreditAttribution: Skirr commentedYes, i tried this way, but it seems that IMCE module have conflict with datatables. Didnt figure it out yet, but all "download buttons" in imce disappear.
Comment #3
duellj CreditAttribution: duellj commentedIf anyone is interested, I've created a new DataTables module: http://drupal.org/project/datatables
There isn't a stable release yet, but there's initial support for displaying views output as a datatable, as well as a basic datatable theme.
Comment #4
klonosI am interested duellj...
thank you for bringing this to life. I will be testing and getting back with use cases, bug & feature reports soon as I start playing with it.
Comment #5
Rajan M CreditAttribution: Rajan M commentedHi All,
Here is an simple example of search form in Drupal using datatable, http://bit.ly/drupaldatatable.
Cheers,
Rajan