Table colulmns only add when certain filters are applied

I want to show certain columns from pivot table, but it only makes sense when filters are applied or else I run into the situation in my other post where I have to select the first one in the pivot table.
2 Replies
Martin Oscar
Martin Oscar4mo ago
Hey i believe you could use
->visible(fn () => $this->tableFilters['filterName'])
->visible(fn () => $this->tableFilters['filterName'])
or
->visible(fn () => $this->tableFilters['filterName'] && $this->tableFilters['filterName'] === 'filterValue')
->visible(fn () => $this->tableFilters['filterName'] && $this->tableFilters['filterName'] === 'filterValue')
robi
robi4mo ago
hi a u having problem?

Did you find this page helpful?