can reset widths to default from the column settings menu
This commit is contained in:
parent
43b519ca37
commit
371185e8a5
1 changed files with 6 additions and 2 deletions
|
|
@ -684,9 +684,8 @@ export default function ResponsiveTable<T extends Object>(props: Props<T>) {
|
||||||
<MenuItem
|
<MenuItem
|
||||||
onClick={() => filter(column.title)}
|
onClick={() => filter(column.title)}
|
||||||
key={"column-list-"+index}
|
key={"column-list-"+index}
|
||||||
aria-label="Open User Settings"
|
|
||||||
dense
|
dense
|
||||||
sx={{ marginLeft: -0.75 }}
|
sx={{ marginLeft: -0.75, paddingRight: 3 }}
|
||||||
>
|
>
|
||||||
<ListItemIcon>
|
<ListItemIcon>
|
||||||
<Checkbox
|
<Checkbox
|
||||||
|
|
@ -697,6 +696,11 @@ export default function ResponsiveTable<T extends Object>(props: Props<T>) {
|
||||||
</MenuItem>
|
</MenuItem>
|
||||||
)
|
)
|
||||||
})}
|
})}
|
||||||
|
<MenuItem onClick={() => setRowWidths([])}>
|
||||||
|
<Typography variant="body2" padding={1}>
|
||||||
|
Reset Widths
|
||||||
|
</Typography>
|
||||||
|
</MenuItem>
|
||||||
</Menu>
|
</Menu>
|
||||||
</TableContainer>
|
</TableContainer>
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue