how to set null row of table before filtered
how to set empty before filtered table
Solution:Jump to 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...14 Replies
You mean you want to change the empty state of the table?
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
i want set null or hide a table row/data before user using a filter
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
ok i'll try
i only find activeTab bro 😦
It's
tableFilters
. Just found this thread:
https://discord.com/channels/883083792112300104/1191679993424646254/1191697312695722024i though that should be working
but filtering not working after that
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 oneya i think the problem in if statement
but i dont know to fix it
Check the content of tableFilters. You probably need to check when they are active. Or find a method that helps with that.
event i set ==null its not work
i only have 1 row
solved bro i used custom filter form live to change default value