mui-datatables v2.7.0: added custom filtertype and searchText (#37537)

* Added custom value to FilterType and searchText as string to MUIDataTableOptions

mui-datatables version 2.7.0

* Removed trailing whitespace
This commit is contained in:
skalma
2019-08-12 13:57:19 -07:00
committed by Pranav Senthilnathan
parent 2311984a90
commit 57264f62b5
+2 -1
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';
export type FilterType = 'dropdown' | 'checkbox' | 'multiselect' | 'textField' | 'custom';
export type Responsive = 'stacked' | 'scroll';
export type SelectableRows = 'multiple' | 'single' | 'none';
@@ -184,6 +184,7 @@ export interface MUIDataTableOptions {
rowsPerPageOptions?: number[];
rowsSelected?: any[];
search?: boolean;
searchText?: string;
selectableRows?: SelectableRows;
serverSide?: boolean;
setRowProps?: (row: any[], rowIndex: number) => object;