Lazy loading collapsable table data
is there a way of adding lazy loading the content (relational data) for a collapsable table. I only found this discussion here: https://github.com/filamentphp/filament/discussions/5692
GitHub
Lazy loading collapsible table Β· filamentphp filament Β· Discussion ...
It would be really cool if you can lazy load the content in the collapsed view. https://filamentphp.com/docs/2.x/tables/layout#collapsible-content
Solution:Jump to solution
Not super familiar with the v3 codebase yet but from a quick look, this feature looks the same as on v2. Maybe add a comment on the feature request you linked above π with a bit more information on how you would want to use this feature (if you can think of your ideal API)? Just a thought π
7 Replies
I don't think there's a simple way to do this unfortunately
Thanks for your response.
Any chance to make this possible in v3 or later? π
Solution
Not super familiar with the v3 codebase yet but from a quick look, this feature looks the same as on v2. Maybe add a comment on the feature request you linked above π with a bit more information on how you would want to use this feature (if you can think of your ideal API)? Just a thought π
okay, thanks a lot, will close this here π
It would be reliant on Livewire V3, the table is a single component not individaul components so you can't really lazy load them. You could lazy load the whole table I supose
As a workaround, I'm thinking you could lazyload a partial through Alpine, when the row is expanded. But this would require digging into the Blade views... it's hacky.
yeah