Added two missing props sortColumn and sortDirection (#27197)

This commit is contained in:
Felipe Vaz
2018-07-12 00:50:37 -07:00
committed by Ryan Cavanaugh
parent dfe05a96d6
commit b9edcc9c51
+11
View File
@@ -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.