lukegalea16's avatar

Livewire Datatables

Is anyone using Livewire Datatables and can give his/her opinion on them? So far I've used Livewire with a Load More functionality. Livewire Datatables seems convenient and neat to use as opposed to bootstrap tables and implementing pagination from Livewire. Thoughts?

0 likes
6 replies
Nakov's avatar

I do use Livewire to create my own datatable, and I prefer it over the datatable libary as I have more comfort on doing everything in PHP rather then using jQuery, it is much easier to debug if I have any issues.

I still use the datatables library heavily, as I have a legacy project that I still maintain, but I am slowly moving each table to use livewire instead.

So far, don't have any issues with livewire, except that it is much more things to create at first. I use exporting to excel and so on, for which I need to do it manually now, but I still do prefer it this way.

Nakov's avatar

No, I was referring to this one: https://datatables.yajrabox.com/

Haven't used any library for livewire datatables. I am creating my own classes.

You can use the library you shared if you want, it looks like it covers a lot of things.

1 like
lukegalea16's avatar

@Nakov Going to end up going your route I think i.e. build my own data table using Livewire because I am having issues with the CSS/JS used by the library with those used by my template.

colbyalbo's avatar

I've implemented a livewire search & filter datatable view with pagination for a clients project. Extremely small data set, works fine. Pretty much follows the same setup as the videos on here. (without using scout or algolia)

I did have some things I had to change from the old table setup which was just simple server side output.

I had some edit buttons, that activated a livewire/alpine modal located in one the TD elements for each row. So that meant, i had to learn how to properly nest the livewire components in the livewire table loop. I ended up not keeping in like that, as it wasn't really important, but i did eventually get it working.

It seems really fast, but i didn't really test it with a huge dataset either, probably do that one day.

1 like

Please or to participate in this conversation.