Jquery datatable with elixir/phoenix backend?

How to integrate jquery datatable with server side pagination using elixir/phoenix??

you render a table in HTML and then add this into app.js or one of included files:

$(document).ready(function(){
    $('#myTable').DataTable();
});

Not sure what are you asking precisely or your problem is.

sorry , now i have updated the question correctly , instead fetching all the records at once i need code example for server side pagination like server side processing

I’ve researched this topic and found this article http://fmcgeough.github.io/phoenix-and-datatables/ we ended up not using datatables but the article seems to explain the whole process in good detail.

2 Likes