As I already mentioned on the Drupal 8 Contrib Porting Tracker page, we developed a datatable port with lots of customizations and functions.
Started with the full ajax implementation, own pager and many other things. This port is ready to use but still in development. If you like we can open another branch where we can put this code.
This code is sponsored by steel.online - sell and buy steel online. As a co developer of the tool I can give lots of credits to the guys of wunderkraut and specially to frega which was heavily involved into the development of this modul.
Just give it a try and return some response
Comment | File | Size | Author |
---|---|---|---|
#15 | afterajxexpose_filter.PNG | 28.93 KB | dhiraj bhagat |
#15 | beforeajaxexposefilter.PNG | 29.29 KB | dhiraj bhagat |
#8 | views-ajax-datatable-2821987-3.patch | 130.46 KB | Anonymous (not verified) |
#4 | views-ajax-datatable-2821987.patch | 225.03 KB | Anonymous (not verified) |
datatables.tar_.gz | 566.67 KB | Anonymous (not verified) |
Comments
Comment #1
Anonymous (not verified) CreditAttribution: Anonymous commentedAlmare created an issue. See original summary.
Comment #2
Growiel CreditAttribution: Growiel commentedI've been doing some tests with this branch.
Overall it's working okay, except for the exposed filters. They are ignored by datatables completely.
I did see an exposed_form plugin for views in the module but for me it's not working at all.
Is that on purpose ? Is work on this branch going to continue ?
Comment #3
Anonymous (not verified) CreditAttribution: Anonymous commentedNot for the last months. This should be alternative idea to the current branch some months ago, because of the missing ajax support. I think this branch needs some work.
Comment #4
Anonymous (not verified) CreditAttribution: Anonymous commentedUpdate: After I saw the work of @BlacKICEUA I reviewed and extend his additions. I add some fixes and new features.
Most of the work is now done to use the complete datatable with views and ajax support.
I hope this is useful for someone and many thanks back to BlacKICEUA.
Comment #5
Anonymous (not verified) CreditAttribution: Anonymous commentedComment #6
Anonymous (not verified) CreditAttribution: Anonymous commentedRemove old style plugin and fix some typos.
Comment #7
Anonymous (not verified) CreditAttribution: Anonymous commentedRename Plugins to DataTables and some minor changes
Comment #8
Anonymous (not verified) CreditAttribution: Anonymous commentedComment #9
dqdAwesome work, Almare! Can you please link to @BlackICEUA's code your patch is based on, so that we know if it is an issue here or from a repo somewhere else? I will review the patch ASAP. 1+
Comment #10
Anonymous (not verified) CreditAttribution: Anonymous commentedSorry for the question, but what do you mean with link to @BlackICEUA?
Comment #11
dqd(Sorry, maybe a misunderstanding on my side?)
Comment #12
dqdHm, still not sure what to do now. We would like to go on with DT 8.x but I would love to get more report on this code here and if/how it still works and if this patch can be simply rerolled/merged against latest dev, etc. Otherwise for me or any other contributor or maintainer it would be a huge amount of work to go thru the code of others which is not based on the existing branch.
Comment #13
leisurman CreditAttribution: leisurman commented@diqidog
I'm in the same situation. My client wants to use datatables in Drupal 8 but we want to sort based on the date format mm/dd/yyyy. Datatables needs a plugin to do this. We need to add the ultimate date plugin here https://datatables.net/blog/2014-12-18. Problem is that it only works on Datatables library version 1.10.18 or higher. The Drupal Datatables module is using version 1.9.3. We decided to add the js files to the datatables module. moment.min.js and datetime-moment.js. So are library looks like this.
We added the moment date function $.fn.dataTable.moment( 'MM/DD/YYYY' ); directly to Datatables library file datatables.js. like this:
Then we found we need to use the Datatables version 1.10.19. I tried to add the patch from here and the one on this page. But Composer fails to apply them. I am wondering if the author can provide it as a new custom module. I wont need to use Composer to install it. Or if we could get the instructions on how to change the module so that it can use library version 1.10.19. For now I am going to try to apply this patch manually.
Comment #14
dhiraj bhagat CreditAttribution: dhiraj bhagat as a volunteer and commentedAny one is working further for this. It seems to me everything is working on 1st load. This is not working when exposed filter apply.
Comment #15
dhiraj bhagat CreditAttribution: dhiraj bhagat as a volunteer and commentedComment #16
apadernoComment #17
AnybodyWhat's the status in 2.x here? Still relevant?
Comment #18
AnybodyClosing this as duplicate of #3014240: Implementing views ajax support