API REFERENCE

ViewportRequestContext

Fields, allowed values, and APIs that use ViewportRequestContext.

Type definition

A question mark (?) marks an optional field; readonly marks a value you should not change directly. A union (|) accepts one of the listed forms. Functions are callbacks that Grid invokes at the relevant point.

typescript
export interface ViewportRequestContext {
  readonly sortModel: ReadonlyArray<{
    readonly colId: string;
    readonly sort: 'asc' | 'desc';
  }>;
  readonly filterModel: Readonly<Record<string, unknown>>;
  readonly quickFilter?: string;
  readonly advancedFilterModel?: unknown;
}

Contracts containing this type