All threads / Datatables From Scratch Using Hotwire Discussion

Ask A Question


You’re not receiving notifications from this thread.

Datatables From Scratch Using Hotwire Discussion


Wow this is awesome! I was just searching yesterday trying to find a datatables alternative. This is great! Would love to see the csv, excel, pdf download buttons worked in. You should package this up as a gem or something!


Great, I'm currently working on a complex datatable and this is a great inspiration.
Any idea on how to implement a multi column sort?


Hi chris, so the ajax is deprecaated?
thanks for advance


presence_in can be nice to quiet down those ternaries and avoid the double params[:sort] which makes the line busy:

params[:sort].presence_in(%w{ name position office age start_date }) || "name"
Join the discussion

Want to stay up-to-date with Ruby on Rails?

Join 54,645+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.

    logo Created with Sketch.

    Ruby on Rails tutorials, guides, and screencasts for web developers learning Ruby, Rails, Javascript, Turbolinks, Stimulus.js, Vue.js, and more. Icons by Icons8

    © 2021 GoRails, LLC. All rights reserved.