F
Filament14mo ago
hgms

Preventing "No records found" state

I have a table with 12 columns that are each individually searchable. When the user keys in a search that returns no records, the UI flips to display the "No records found" state, which removes all of the column filters and requires the user to click on the "Clear column search" action. I would prefer to keep the table display standard and return no rows while maintaining the column headers if possible. Is that something that can be controlled with a Filament option, or would it require a custom extension of the existing table logic?
4 Replies
Patrick Boivin
Patrick Boivin14mo ago
I'm not completely sure but I think it would require a modification of the table's index.blade.php view
hgms
hgmsOP14mo ago
Thanks, Patrick. I was hoping there would be a way to do it natively but if there isn't, I can look into extending the base component. If you have several filters going simultaneously and mistype in one field, you have to clear everything and start over, which isn't optimal.
toeknee
toeknee14mo ago
Feel free to submit a pr?
hgms
hgmsOP14mo ago
For sure. It would be awesome to contribute to this amazing project. I'll submit once I get things working. Thanks.
Want results from more Discord servers?
Add your server