Variable TableConfigsConst
TableConfigs: {
DefaultConfig: {
enableDensityToggle: false;
enableFullScreenToggle: false;
mrtTheme: (
theme: Theme,
) => { baseBackgroundColor: string; draggingBorderColor: string };
muiBottomToolbarProps: { sx: { boxShadow: "none" } };
muiPaginationProps: { showRowsPerPage: true };
muiTableBodyCellProps: {
sx: { color: (theme: Theme) => string; paddingY: string };
};
muiTableBodyRowProps: {
sx: {
"&:hover td:after": {
backgroundColor: (theme: Theme) => string;
content: "\"\"";
height: string;
left: number;
position: "absolute";
top: number;
width: string;
zIndex: number;
};
};
};
muiTableHeadCellProps: {
sx: {
"&[data-pinned=\"true\"]:before": { backgroundColor: "inherit" };
};
};
muiTablePaperProps: {
elevation: number;
sx: {
"& .MuiIconButton-root": { color: "info.dark" };
backgroundColor: (theme: Theme) => string;
borderRadius: string;
};
};
paginationDisplayMode: "pages";
};
WithAllFeaturesDisable: {
enableColumnActions: false;
enableColumnResizing: false;
enableFilters: false;
enableGlobalFilter: false;
enableGrouping: false;
enableHiding: false;
enableSorting: false;
enableTopToolbar: false;
};
WithGlobalSearchEnable: {
enableGlobalFilter: true;
initialState: { showGlobalFilter: true };
positionGlobalFilter: "left";
};
WithHeaderDisable: { enableFilters: false; enableTableHead: false };
WithPaginationDisable: { enablePagination: false };
WithRowActionPinned: {
enableColumnPinning: true;
initialState: { columnPinning: { right: string[] } };
positionActionsColumn: "last";
};
} = ...
Type Declaration
DefaultConfig: {
enableDensityToggle: false;
enableFullScreenToggle: false;
mrtTheme: (
theme: Theme,
) => { baseBackgroundColor: string; draggingBorderColor: string };
muiBottomToolbarProps: { sx: { boxShadow: "none" } };
muiPaginationProps: { showRowsPerPage: true };
muiTableBodyCellProps: {
sx: { color: (theme: Theme) => string; paddingY: string };
};
muiTableBodyRowProps: {
sx: {
"&:hover td:after": {
backgroundColor: (theme: Theme) => string;
content: "\"\"";
height: string;
left: number;
position: "absolute";
top: number;
width: string;
zIndex: number;
};
};
};
muiTableHeadCellProps: {
sx: {
"&[data-pinned=\"true\"]:before": { backgroundColor: "inherit" };
};
};
muiTablePaperProps: {
elevation: number;
sx: {
"& .MuiIconButton-root": { color: "info.dark" };
backgroundColor: (theme: Theme) => string;
borderRadius: string;
};
};
paginationDisplayMode: "pages";
}
WithAllFeaturesDisable: {
enableColumnActions: false;
enableColumnResizing: false;
enableFilters: false;
enableGlobalFilter: false;
enableGrouping: false;
enableHiding: false;
enableSorting: false;
enableTopToolbar: false;
}
WithGlobalSearchEnable: {
enableGlobalFilter: true;
initialState: { showGlobalFilter: true };
positionGlobalFilter: "left";
}
WithRowActionPinned: {
enableColumnPinning: true;
initialState: { columnPinning: { right: string[] } };
positionActionsColumn: "last";
}
Disables basic features like sorting, filtering, grouping, global search, column pinning, column resizing, and hiding