Plugin for plugins vs jQuery

I am wondering if it is worth refactoring my Rails code from Rails Willpaginate to JAQery-datatables, as I find it takes a long time to code Sort, Ajaxing calls, Export to CSV / Excel, etc.

Any experience from others about data? Do you recommend using it with Rails?

Thank you Arshad

+3
source share
1 answer

jQuery Datatables work out of the box regardless of the rails application. If you have many rows, you can consider sorting them on the server side.

Here is an example of PHP integration that you can use to target your ruby ​​implementation: http://www.datatables.net/examples/data_sources/server_side.html

rails : https://github.com/phronos/rails_datatables

, will_paginate , datatables ajaxsource.

+2

Source: https://habr.com/ru/post/1782975/


All Articles