mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-06-30 23:30:06 +00:00
[mui-datatables] add property fixedHeaderOptions (#41428)
* add property fixedHeaderOptions * Update mui-datatables-tests.tsx
This commit is contained in:
committed by
Armando Aguirre
parent
a6550cf254
commit
8db5f5a772
4
types/mui-datatables/index.d.ts
vendored
4
types/mui-datatables/index.d.ts
vendored
@@ -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?: (
|
||||
|
||||
@@ -30,6 +30,10 @@ const MuiCustomTable: React.FC<Props> = (props) => {
|
||||
];
|
||||
|
||||
const TableOptions: MUIDataTableOptions = {
|
||||
fixedHeaderOptions: {
|
||||
xAxis: false,
|
||||
yAxis: true
|
||||
},
|
||||
filterType: 'checkbox',
|
||||
responsive: 'scrollFullHeight',
|
||||
selectableRows: 'none',
|
||||
|
||||
Reference in New Issue
Block a user