clear filter button

This commit is contained in:
Jan Prochazka
2020-03-12 20:44:20 +01:00
parent e8733c6587
commit 74e7d7d4e8
3 changed files with 30 additions and 1 deletions

View File

@@ -338,4 +338,16 @@ export abstract class GridDisplay {
});
this.reload();
}
get filterCount() {
return _.compact(_.values(this.config.filters)).length;
}
clearFilters() {
this.setConfig({
...this.config,
filters: {},
});
this.reload();
}
}