Function to resect selection in filter bar

This commit is contained in:
Wlowscha 2025-02-19 20:49:00 +01:00
parent f5868f0a80
commit 7d25fbb4b2
No known key found for this signature in database
GPG Key ID: 3C8F1AD330565D04

View File

@ -185,6 +185,11 @@ export class FilterBar extends Phaser.GameObjects.Container {
return this.getFilter(col).getVals();
}
resetSelection(col: DropDownColumn): void {
this.dropDowns[col].resetToDefault();
this.updateFilterLabels();
}
setValsToDefault(): void {
for (const dropDown of this.dropDowns) {
dropDown.resetToDefault();