From 57264f62b5dd1a4fcbade4129899b13a2014ced3 Mon Sep 17 00:00:00 2001 From: skalma <38102328+skalma@users.noreply.github.com> Date: Mon, 12 Aug 2019 22:57:19 +0200 Subject: [PATCH] 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 --- types/mui-datatables/index.d.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/types/mui-datatables/index.d.ts b/types/mui-datatables/index.d.ts index 56a7b5334e..ba2f028e23 100644 --- a/types/mui-datatables/index.d.ts +++ b/types/mui-datatables/index.d.ts @@ -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;