From b9edcc9c513da152883bb9dc3f5eb337e6f23f77 Mon Sep 17 00:00:00 2001 From: Felipe Vaz Date: Thu, 12 Jul 2018 02:50:37 -0500 Subject: [PATCH] Added two missing props sortColumn and sortDirection (#27197) --- types/react-data-grid/index.d.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/types/react-data-grid/index.d.ts b/types/react-data-grid/index.d.ts index 82070c673c..9c6ca297eb 100644 --- a/types/react-data-grid/index.d.ts +++ b/types/react-data-grid/index.d.ts @@ -130,6 +130,17 @@ declare namespace AdazzleReactDataGrid { * @param sortDirection The direction to sort ('ASC'/'DESC'/'NONE') */ onGridSort?: (sortColumn: string, sortDirection: 'ASC' | 'DESC' | 'NONE') => void + + /** + * Initial sorting direction + */ + sortDirection?: 'ASC' | 'DESC' | 'NONE' + + /** + * key of the initial sorted column + */ + sortColumn?: string + /** * Called when the user filters a column by some value. * Should restrict the rows in rowGetter to only things that match the filter.