F
Filamentβ€’17mo ago
krizz3332

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
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 πŸ˜„
Jump to solution
7 Replies
Patrick Boivin
Patrick Boivinβ€’17mo ago
I don't think there's a simple way to do this unfortunately
krizz3332
krizz3332OPβ€’17mo ago
Thanks for your response. Any chance to make this possible in v3 or later? πŸ˜„
Solution
Patrick Boivin
Patrick Boivinβ€’17mo ago
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 πŸ˜„
krizz3332
krizz3332OPβ€’17mo ago
okay, thanks a lot, will close this here πŸ™‚
toeknee
toekneeβ€’17mo ago
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
Patrick Boivin
Patrick Boivinβ€’17mo ago
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.
toeknee
toekneeβ€’17mo ago
yeah
Want results from more Discord servers?
Add your server