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
|
||||
onClick={() => filter(column.title)}
|
||||
key={"column-list-"+index}
|
||||
aria-label="Open User Settings"
|
||||
dense
|
||||
sx={{ marginLeft: -0.75 }}
|
||||
sx={{ marginLeft: -0.75, paddingRight: 3 }}
|
||||
>
|
||||
<ListItemIcon>
|
||||
<Checkbox
|
||||
|
|
@ -697,6 +696,11 @@ export default function ResponsiveTable<T extends Object>(props: Props<T>) {
|
|||
</MenuItem>
|
||||
)
|
||||
})}
|
||||
<MenuItem onClick={() => setRowWidths([])}>
|
||||
<Typography variant="body2" padding={1}>
|
||||
Reset Widths
|
||||
</Typography>
|
||||
</MenuItem>
|
||||
</Menu>
|
||||
</TableContainer>
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue