Method to get column at a given index in filter bar

This commit is contained in:
Wlowscha 2025-02-24 00:49:26 +01:00
parent ce92dfa048
commit 382e8beaf9
No known key found for this signature in database
GPG Key ID: 3C8F1AD330565D04

View File

@ -86,6 +86,15 @@ export class FilterBar extends Phaser.GameObjects.Container {
return this.dropDowns[this.columns.indexOf(col)];
}
/**
* Get the DropDownColumn associated to a given index
* @param index the index of the column to retrieve
* @returns the associated DropDownColumn if it exists, undefined otherwise
*/
getColumn(index: number) : DropDownColumn {
return this.columns[index];
}
/**
* Highlight the labels of the FilterBar if the filters are different from their default values
*/