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:

 ->visible(function (HasTable $livewire) {
    return ZaakState::ACTIVE->value === $livewire->getTableFilterState('state')['value'];
}),
Was this page helpful?