mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-21 07:42:25 +02:00
Method to get column at a given index in filter bar
This commit is contained in:
parent
ce92dfa048
commit
382e8beaf9
@ -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
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user