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
Proculair8mo 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'];
}),