Added typings for onTableInit callback, (#37815)

Added displayData property from MUIDataTableState
This commit is contained in:
shurnster
2019-08-22 08:31:39 -07:00
committed by Sheetal Nandi
parent 614ff4b4dd
commit 0ba74654bf

View File

@@ -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;