Update onFilterChange function signature (#39958)

Add type argument to onFilterChange function signature, which now accepts 3 arguments instead of 2.
https://github.com/gregnb/mui-datatables
This commit is contained in:
Pierre Lebrun 2019-10-31 02:13:47 +09:00 committed by Jesse Trinity
parent e7d0af6a9d
commit 78c8295f88

View File

@ -11,7 +11,7 @@ import * as React from 'react';
export type Display = 'true' | 'false' | 'excluded';
export type SortDirection = 'asc' | 'desc';
export type FilterType = 'dropdown' | 'checkbox' | 'multiselect' | 'textField' | 'custom';
export type FilterType = 'dropdown' | 'checkbox' | 'multiselect' | 'textField' | 'custom' | 'chip' | 'reset';
export type Responsive = 'stacked' | 'scrollMaxHeight' | 'scrollFullHeight';
export type SelectableRows = 'multiple' | 'single' | 'none';
@ -192,7 +192,7 @@ export interface MUIDataTableOptions {
columns: any,
data: any
) => BlobPart;
onFilterChange?: (changedColumn: string, filterList: any[]) => void;
onFilterChange?: (changedColumn: string, filterList: any[], type: FilterType) => void;
onFilterDialogOpen?: () => void;
onFilterDialogClose?: () => void;
onRowClick?: (rowData: string[], rowMeta: { dataIndex: number; rowIndex: number }) => void;