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 Koch5mo ago
You mean you want to change the empty state of the table?
jepewsykes
jepewsykes5mo 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
jepewsykes5mo ago
No description
jepewsykes
jepewsykes5mo ago
i want set null or hide a table row/data before user using a filter
Solution
Dennis Koch
Dennis Koch5mo 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
jepewsykes5mo ago
ok i'll try i only find activeTab bro 😦
jepewsykes
jepewsykes5mo ago
No description
jepewsykes
jepewsykes5mo ago
i though that should be working but filtering not working after that
Dennis Koch
Dennis Koch5mo 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
jepewsykes5mo ago
ya i think the problem in if statement but i dont know to fix it
Dennis Koch
Dennis Koch5mo ago
Check the content of tableFilters. You probably need to check when they are active. Or find a method that helps with that.
jepewsykes
jepewsykes5mo ago
jepewsykes
jepewsykes5mo 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
More Posts