how to set null row of table before filtered

how to set empty before filtered table
Solution:
Use ->query() on the table object. You can then check the activeFilters (not sure about the exact property). This was asked before. Try searching the discord or check the source code. Something like ```php...
Jump to solution
14 Replies
Dennis Koch
Dennis Koch11mo ago
You mean you want to change the empty state of the table?
jepewsykes
jepewsykesOP11mo ago
no i want create a report something user open page should be empty state then user filter data then show up i already try using static function getEloquentQuery() but it returned to in filtered data
jepewsykes
jepewsykesOP11mo ago
No description
jepewsykes
jepewsykesOP11mo ago
i want set null or hide a table row/data before user using a filter
Solution
Dennis Koch
Dennis Koch11mo ago
Use ->query() on the table object. You can then check the activeFilters (not sure about the exact property). This was asked before. Try searching the discord or check the source code. Something like
->query(fn (ListRecords $livewire) => $livewire->tableFilters ... )
->query(fn (ListRecords $livewire) => $livewire->tableFilters ... )
jepewsykes
jepewsykesOP11mo ago
ok i'll try i only find activeTab bro 😦
jepewsykes
jepewsykesOP11mo ago
No description
jepewsykes
jepewsykesOP11mo ago
i though that should be working but filtering not working after that
Dennis Koch
Dennis Koch11mo ago
Hm. Thought that should work, too. What's not working? They are just not applied? I think $livewire->tableFilters is always true. You should check the content of that one
jepewsykes
jepewsykesOP11mo ago
ya i think the problem in if statement but i dont know to fix it
Dennis Koch
Dennis Koch11mo ago
Check the content of tableFilters. You probably need to check when they are active. Or find a method that helps with that.
jepewsykes
jepewsykesOP11mo ago
jepewsykes
jepewsykesOP11mo ago
event i set ==null its not work i only have 1 row solved bro i used custom filter form live to change default value
Want results from more Discord servers?
Add your server