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
Working solution:
public function updating($property, $value)
{
if($property == 'activeTab'){
$this->tableSortColumn = null;
$this->resetTableSearch();
$this->resetTableColumnSearches();
$this->resetTableFiltersForm();
$this->deselectAllTableRecords();
}
}
hey, where should I put this updating method?
Nevermind, I got it.