MUI-Datatables: Update to let text labels and download options to be partials. (#43183)

* Update to let text labels be optional.

* Make download options partial.

* Revert some of the autoformatting issues.

* Update types/mui-datatables/index.d.ts

Co-Authored-By: Jeroen Claassens <jeroen.claassens@live.nl>

Co-authored-by: Jeroen Claassens <jeroen.claassens@live.nl>
This commit is contained in:
John Detlefs 2020-03-30 07:58:39 -05:00 committed by GitHub
parent 7caeca4bfb
commit a75f3d3a49
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -183,11 +183,11 @@ export interface MUIDataTableOptions {
) => React.ReactNode;
disableToolbarSelect?: boolean;
download?: boolean;
downloadOptions?: {
downloadOptions?: Partial<{
filename: string;
separator: string;
filterOptions?: { useDisplayedColumnsOnly: boolean; useDisplayedRowsOnly: boolean };
};
filterOptions: Partial<{ useDisplayedColumnsOnly: boolean; useDisplayedRowsOnly: boolean }>;
}>;
elevation?: number;
expandableRows?: boolean;
expandableRowsOnClick?: boolean;
@ -255,7 +255,7 @@ export interface MUIDataTableOptions {
setRowProps?: (row: any[], rowIndex: number) => object;
sort?: boolean;
sortFilterList?: boolean;
textLabels?: MUIDataTableTextLabels;
textLabels?: Partial<MUIDataTableTextLabels>;
viewColumns?: boolean;
}