Skip to content

@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

NameTypeDescriptionDefined in
columnByPropRecord<ColumnProp, ColumnRegular[]>Columns indexed by prop for quick access, it's possible to have multiple columns with same prop but not recommendedsrc/utils/column.utils.ts:56
columnGroupingColumnGroupingCollectionGrouped columnssrc/utils/column.utils.ts:60
columnsRecord<DimensionCols, ColumnRegular[]>Columns as they are in storessrc/utils/column.utils.ts:52
maxLevelnumberMax level of groupingsrc/utils/column.utils.ts:64
sortRecord<ColumnProp, ColumnRegular>Sortingsrc/utils/column.utils.ts:68

Defined in

src/utils/column.utils.ts:48

Revogrid is a MIT-licensed open source library made by Revolist OU.