Reset filters after change tab

I have a view containing table and tabs. This works fine, but I don't know how to make a clicked tab reset the filters and search.
2 Replies
lkucharski
lkucharskiOP12mo ago
Working solution: public function updating($property, $value) { if($property == 'activeTab'){ $this->tableSortColumn = null; $this->resetTableSearch(); $this->resetTableColumnSearches(); $this->resetTableFiltersForm(); $this->deselectAllTableRecords(); } }
Pulpsting0610
Pulpsting061010mo ago
hey, where should I put this updating method? Nevermind, I got it.
Want results from more Discord servers?
Add your server