Infinite scroll In Table

Is there any way i can archieve infinite scroll in table list view instead of pagination
13 Replies
Dennis Koch
Dennis Koch12mo ago
I think that would require a lot of modification of the table logic. So it's probably a no
Patrick Boivin
Patrick Boivin12mo ago
Agreed... it complicates things like search and filters. It'll be much easier to build your own @technocrat3969
technocrat
technocrat11mo ago
thanks @Dennis Koch and @pboivin Can you give some idea to building this out. what should i do ? shall i create a new table using livewire or by overriding table builder
Dennis Koch
Dennis Koch11mo ago
You could try with extending table builder adding your JS or load more button and overwrite pagination. I still think it’s a lot of work and not worth the effort.
Dan Harrin
Dan Harrin11mo ago
yup, not worth the effort. pagination is better from a UX and performance perspective too
Patrick Boivin
Patrick Boivin11mo ago
Personally, I wouldn't try to override the table builder. Regarding the infinite scroll functionnality, I think it it would be simpler to build your own table by reusing markup from the Filament Table. But the trade-off is that you lose all other features you get for free with the paginated table.
technocrat
technocrat11mo ago
Can i use jquery to achieve this functionality
Dan Harrin
Dan Harrin11mo ago
yes but please dont lol
Patrick Boivin
Patrick Boivin11mo ago
You can use plain Livewire... you'll need JS only for the trigger that loads the next chunk of items when you hit the bottom of the page
Dan Harrin
Dan Harrin11mo ago
theres even a tutorial on it on the old livewire website i think
technocrat
technocrat11mo ago
I need this any how, it is the part of my ongoing project and client requirments changed. We are the middle of production deployment yup this is the only way
Dan Harrin
Dan Harrin11mo ago
okay, well at this point its not a filament question, so go forth and implement your custom table
technocrat
technocrat11mo ago
Yup thanks All