Accessors
Private
visible Columns
get visibleColumns( ) : Column < unknown > []
Private
Returns Column < unknown > []
Methods
columns After
columns After( referenceColumn: Column < unknown > ) : Column < unknown > []
Parameters
referenceColumn: Column < unknown >
Returns Column < unknown > []
columns Before
columns Before( referenceColumn: Column < unknown > ) : Column < unknown > []
Parameters
referenceColumn: Column < unknown >
Returns Column < unknown > []
get Position
get Position( column: Column < unknown > ) : number
Returns number
next Column
next Column( referenceColumn: Column < unknown > ) : undefined | null | Column < unknown >
Parameters
referenceColumn: Column < unknown >
Returns undefined | null | Column < unknown >
previous Column
previous Column( referenceColumn: Column < unknown > ) : undefined | null | Column < unknown >
Parameters
referenceColumn: Column < unknown >
Returns undefined | null | Column < unknown >
Private
read
read( ) : undefined | Map < string , number >
Private
Returns undefined | Map < string , number >
reset
reset( ) : void
Returns void
Private
save
save( map: Map < string , number > ) : void
Private
Returns void
set Position
set Position( column: Column < unknown > , newPosition: number ) : undefined | false
Parameters
column: Column < unknown >
newPosition: number
Returns undefined | false
We want to maintain the instance of this ColumnOrder class because we allow the consumer of the table to swap out columns at any time. When they do this, we want to maintain the order of the table, best we can. This is also why the order of the columns is maintained via column key