F
Filament2y ago
dyo

Custom column data loaded last

i'm using custom page with filament table component.. i want the last column data, which is the only api based data in table, to load after the other columns is loaded, to reduce page load time. how can i do it?
5 Replies
Patrick Boivin
You can defer loading just the table until the page is ready:
public function isTableLoadingDeferred(): bool
{
return true;
}
public function isTableLoadingDeferred(): bool
{
return true;
}
dyo
dyoOP2y ago
thanks, that helps a lot.. but how can i load the status column later, after other column is fully loaded?
Patrick Boivin
I'm not sure... I don't see an easy solution for this
awcodes
awcodes2y ago
only real solution if you need it to be dynamic would be to make a custom column, then in the view of that column you could use alpine to make an ajax request to an api url on your server to get the status.
dyo
dyoOP2y ago
thanks, i'll try..
Want results from more Discord servers?
Add your server