UNPKG

@deephaven/js-plugin-ag-grid

Version:
20 lines 1.07 kB
import type { dh as DhType } from '@deephaven/jsapi-types'; import { ColumnState, SortModelItem } from '@ag-grid-community/core'; export declare function isSortModelItem(item: ColumnState): item is SortModelItem; export default 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[]; } //# sourceMappingURL=AgGridSortUtils.d.ts.map