UNPKG

@deephaven/js-plugin-ag-grid

Version:
21 lines 1.1 kB
import type { dh as DhType } from '@deephaven/jsapi-types'; import { ColumnState, SortModelItem } from 'ag-grid-community'; export declare function isSortModelItem(item: ColumnState): item is SortModelItem; export declare class AgGridSortUtils { /** * Compares two arrays to see if they contain the same Sorts in the same order. * @param a A Sort array to compare * @param b Another Sort array to compare * @returns True if the two Sort arrays are identical, otherwise false. */ static areSortsEqual(a: readonly DhType.Sort[], b: readonly DhType.Sort[]): boolean; /** * Parses the sort model items into Deephaven Sorts to apply on a table. * @param table Deephaven table or tree table to use * @param sortModelItems SortModelItem array to parse * @returns An array of Deephaven Sort objects parsed from the SortModelItem array. */ static parseSortModel(table: DhType.Table | DhType.TreeTable, sortModelItems: readonly SortModelItem[]): DhType.Sort[]; } export default AgGridSortUtils; //# sourceMappingURL=AgGridSortUtils.d.ts.map