Access tableFilters in resource

Hi, On a tableWidget you can access tableFilters like so: ->visible(fn () => ZaakState::ACTIVE->value === $this->tableFilters['state']['value']) Can you also access these in a a Resource?
Solution:
Found the solution: ```php ->visible(function (HasTable $livewire) { return ZaakState::ACTIVE->value === $livewire->getTableFilterState('state')['value'];...
Jump to solution
1 Reply
Solution
Proculair B.V.
Proculair B.V.13mo ago
Found the solution:
->visible(function (HasTable $livewire) {
return ZaakState::ACTIVE->value === $livewire->getTableFilterState('state')['value'];
}),
->visible(function (HasTable $livewire) {
return ZaakState::ACTIVE->value === $livewire->getTableFilterState('state')['value'];
}),
Want results from more Discord servers?
Add your server