@revolist/revogrid / ColumnCollection
Type Alias: ColumnCollection
ts
type ColumnCollection: {
columnByProp: Record<ColumnProp, ColumnRegular[]>;
columnGrouping: ColumnGroupingCollection;
columns: Record<DimensionCols, ColumnRegular[]>;
maxLevel: number;
sort: Record<ColumnProp, ColumnRegular>;
};
Column collection definition. Used to access indexed data for columns. Can be accessed via different events.
Type declaration
Name | Type | Description | Defined in |
---|---|---|---|
columnByProp | Record <ColumnProp , ColumnRegular []> | Columns indexed by prop for quick access, it's possible to have multiple columns with same prop but not recommended | src/utils/column.utils.ts:56 |
columnGrouping | ColumnGroupingCollection | Grouped columns | src/utils/column.utils.ts:60 |
columns | Record <DimensionCols , ColumnRegular []> | Columns as they are in stores | src/utils/column.utils.ts:52 |
maxLevel | number | Max level of grouping | src/utils/column.utils.ts:64 |
sort | Record <ColumnProp , ColumnRegular > | Sorting | src/utils/column.utils.ts:68 |