Added returntype JSX.Element to option customSearchRender (#37769)

Added returntype JSX.Element to option customSearchRender in MUIDataTableOptions
This commit is contained in:
skalma
2019-08-20 20:55:15 +02:00
committed by Sheetal Nandi
parent e650ec14ab
commit 532d2c98f5

View File

@@ -141,7 +141,7 @@ export interface MUIDataTableOptions {
changePage: number
) => React.ReactNode;
customSearch?: (searchQuery: string, currentRow: any[], columns: any[]) => boolean;
customSearchRender?: (searchText: string, handleSearch: any, hideSearch: any, options: any) => React.Component;
customSearchRender?: (searchText: string, handleSearch: any, hideSearch: any, options: any) => React.Component | JSX.Element;
customSort?: (data: any[], colIndex: number, order: string) => any[];
customToolbar?: () => React.ReactNode;
customToolbarSelect?: (