mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-06-28 14:20:12 +00:00
Added typings for onTableInit callback, (#37815)
Added displayData property from MUIDataTableState
This commit is contained in:
2
types/mui-datatables/index.d.ts
vendored
2
types/mui-datatables/index.d.ts
vendored
@@ -36,6 +36,7 @@ export interface MUIDataTableState {
|
||||
showResponsive: boolean;
|
||||
searchText: string | null;
|
||||
rowsPerPageOptions: number[];
|
||||
displayData: Array<{ data: any[]; dataIndex: number }>;
|
||||
}
|
||||
|
||||
interface MUIDataTableMeta {
|
||||
@@ -182,6 +183,7 @@ export interface MUIDataTableOptions {
|
||||
onSearchChange?: (searchText: string) => void;
|
||||
onSearchOpen?: () => void;
|
||||
onTableChange?: (action: string, tableState: MUIDataTableState) => void;
|
||||
onTableInit?: (action: string, tableState: MUIDataTableState) => void;
|
||||
page?: number;
|
||||
pagination?: boolean;
|
||||
print?: boolean;
|
||||
|
||||
Reference in New Issue
Block a user