[mui-datatables] add property fixedHeaderOptions (#41428)

* add property fixedHeaderOptions

* Update mui-datatables-tests.tsx
This commit is contained in:
Alex Berk
2020-01-07 15:16:10 -08:00
committed by Armando Aguirre
parent a6550cf254
commit 8db5f5a772
2 changed files with 8 additions and 0 deletions

View File

@@ -194,6 +194,10 @@ export interface MUIDataTableOptions {
filter?: boolean;
filterType?: FilterType;
fixedHeader?: boolean;
fixedHeaderOptions?: {
xAxis: boolean;
yAxis: boolean;
};
isRowExpandable?: (dataIndex: number, expandedRows?: MUIDataTableIsRowCheck) => boolean;
isRowSelectable?: (dataIndex: number, selectedRows?: MUIDataTableIsRowCheck) => boolean;
onCellClick?: (

View File

@@ -30,6 +30,10 @@ const MuiCustomTable: React.FC<Props> = (props) => {
];
const TableOptions: MUIDataTableOptions = {
fixedHeaderOptions: {
xAxis: false,
yAxis: true
},
filterType: 'checkbox',
responsive: 'scrollFullHeight',
selectableRows: 'none',