Skip to content

RevoGrid Documentation v4.15.2 / DataSourceState

Type Alias: DataSourceState<T, ST>

ts
type DataSourceState<T, ST>: {
  groupingDepth: number;
  groups: Record<any, any>;
  items: number[];
  proxyItems: number[];
  source: T[];
  trimmed: Record<any, any>;
  type: ST;
};

Type Parameters

Type Parameter
T extends DataType | ColumnRegular
ST extends DimensionRows | DimensionCols

Type declaration

NameTypeDescriptionDefined in
groupingDepthnumberGrouping informationsrc/types/interfaces.ts:604
groupsRecord<any, any>-src/types/interfaces.ts:605
itemsnumber[]List of indices for visible items in the gridsrc/types/interfaces.ts:591
proxyItemsnumber[]List of indices for visible items in the grid, even if they are trimmed Update this collection if you want to change items ordersrc/types/interfaces.ts:596
sourceT[]Actual data arraysrc/types/interfaces.ts:600
trimmedRecord<any, any>Info for trimming or filtering the data, to hide entities from visible data sourcesrc/types/interfaces.ts:613
typeSTDimension type, can be rows or columns depending on contextsrc/types/interfaces.ts:609

Defined in

src/types/interfaces.ts:584