mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 23:07:06 +00:00
Muidatatables update (#34918)
* added the 'empty' boolean to the MUIDataTableColumnOptions and 'React.ReactNode' to the 'customHeadRender' it still requires TableRow and TableCell * added name and updated versions to most recent * removed minor update notation * fixed header notation * added new line at the end of the doc * reverted the typescript version as per request
This commit is contained in:
committed by
Pranav Senthilnathan
parent
104da7bacb
commit
ec29d74291
Vendored
+6
-4
@@ -2,6 +2,7 @@
|
||||
// Project: https://github.com/gregnb/mui-datatables
|
||||
// Definitions by: Jeroen "Favna" Claassens <https://github.com/favna>
|
||||
// Ankith Konda <https://github.com/ankithkonda>
|
||||
// Herman "Von" Waters IV <https://github.com/hwatersiv>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 3.1
|
||||
|
||||
@@ -9,7 +10,7 @@ import * as React from 'react';
|
||||
|
||||
interface MUIDataTableData {
|
||||
index: number;
|
||||
data: Array<object|number[]|string[]>;
|
||||
data: Array<object | number[] | string[]>;
|
||||
}
|
||||
|
||||
interface MUIDataTableStateRows {
|
||||
@@ -97,6 +98,7 @@ export interface MUIDataTableTextLabels {
|
||||
|
||||
export interface MUIDataTableColumnOptions {
|
||||
display?: 'true' | 'false' | 'excluded';
|
||||
empty?: boolean;
|
||||
filter?: boolean;
|
||||
filterList?: string[];
|
||||
filterOptions?: string[];
|
||||
@@ -106,7 +108,7 @@ export interface MUIDataTableColumnOptions {
|
||||
print?: boolean;
|
||||
download?: boolean;
|
||||
hint?: string;
|
||||
customHeadRender?: (columnMeta: MUIDataTableCustomHeadRenderer, updateDirection: (params: any) => any) => string;
|
||||
customHeadRender?: (columnMeta: MUIDataTableCustomHeadRenderer, updateDirection: (params: any) => any) => string | React.ReactNode;
|
||||
customBodyRender?: (value: any, tableMeta: MUIDataTableMeta, updateValue: (s: any, c: any, p: any) => any) => string | React.ReactNode;
|
||||
setCellProps?: (cellValue: string, rowIndex: number, columnIndex: number) => object;
|
||||
}
|
||||
@@ -176,7 +178,7 @@ export interface MuiDatatablesTableState {
|
||||
export interface MUIDataTableProps {
|
||||
title: string;
|
||||
columns: MUIDataTableColumnDef[];
|
||||
data: Array<object|number[]|string[]>;
|
||||
data: Array<object | number[] | string[]>;
|
||||
options?: MUIDataTableOptions;
|
||||
}
|
||||
|
||||
@@ -193,7 +195,7 @@ export interface MUIDataTablePopover {
|
||||
}
|
||||
|
||||
export interface MUIDataTableBody {
|
||||
data: Array<object|number[]|string[]>;
|
||||
data: Array<object | number[] | string[]>;
|
||||
count: number;
|
||||
columns: MUIDataTableColumnDef[];
|
||||
options: object;
|
||||
|
||||
Reference in New Issue
Block a user