mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 19:07:08 +00:00
improve types/mui-datatables
This commit is contained in:
parent
9e673d252d
commit
ea27c4bbd8
8
types/mui-datatables/index.d.ts
vendored
8
types/mui-datatables/index.d.ts
vendored
@ -105,7 +105,7 @@ export interface MUIDataTableColumnOptions {
|
||||
hint?: string;
|
||||
customHeadRender?: (columnMeta: MUIDataTableCustomHeadRenderer, updateDirection: (params: any) => any) => string;
|
||||
customBodyRender?: (value: any, tableMeta: MUIDataTableMeta, updateValue: (s: any, c: any, p: any) => any) => string | React.ReactNode;
|
||||
setCellProps?: (cellValue: string, rowIndex: number, columnIndex: number) => string;
|
||||
setCellProps?: (cellValue: string, rowIndex: number, columnIndex: number) => object;
|
||||
}
|
||||
|
||||
export interface MUIDataTableOptions {
|
||||
@ -117,7 +117,7 @@ export interface MUIDataTableOptions {
|
||||
textLabels?: MUIDataTableTextLabels;
|
||||
pagination?: boolean;
|
||||
selectableRows?: boolean;
|
||||
IsRowSelectable?: (dataIndex: any) => boolean;
|
||||
IsRowSelectable?: (dataIndex: number) => boolean;
|
||||
resizableColumns?: boolean;
|
||||
expandableRows?: boolean;
|
||||
renderExpandableRow?: (rowData: string[], rowMeta: { dataIndex: number; rowIndex: number }) => React.ReactNode;
|
||||
@ -143,7 +143,7 @@ export interface MUIDataTableOptions {
|
||||
onRowsSelect?: (currentRowsSelected: any[], rowsSelected: any[]) => void;
|
||||
onRowsDelete?: (rowsDeleted: any[]) => void;
|
||||
onRowClick?: (rowData: string[], rowMeta: { dataIndex: number; rowIndex: number }) => void;
|
||||
onCellClick?: (colIndex: number, rowIndex: number) => void;
|
||||
onCellClick?: (colData: any, cellMeta: { colIndex: number, rowIndex: number, dataIndex: number }) => void;
|
||||
onChangePage?: (currentPage: number) => void;
|
||||
onChangeRowsPerPage?: (numberOfRows: number) => void;
|
||||
onSearchChange?: (searchText: string) => void;
|
||||
@ -151,7 +151,7 @@ export interface MUIDataTableOptions {
|
||||
onColumnSortChange?: (changedColumn: string, direction: string) => void;
|
||||
onColumnViewChange?: (changedColumn: string, action: string) => void;
|
||||
onTableChange?: (action: string, tableState: object) => void;
|
||||
setRowProps?: (row: any[], rowIndex: number) => any;
|
||||
setRowProps?: (row: any[], rowIndex: number) => object;
|
||||
}
|
||||
|
||||
export type MUIDataTableColumnDef = string | MUIDataTableColumn;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user