This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
Hello, is same way to erase all set filters in lists. I want to make it on toolbar botton. Maybe is same way to hard refresh list without all filters.
Is this right or no, i din't know, but i found solution for me.
In toolbar i make the button with ajax request to controller function:
<button
class="btn btn-default oc-icon-eraser"
data-request="onClearFiler"
data-stripe-load-indicator>
Clear Filters
And in controller write the function:
public function onClearFiler() {
\Flash::success('Filters are cleared!');
\Session::forget('widget');
$current = \Url::current();
return \Redirect::to($current);
}
Last updated
1-2 of 2