TJRawlins / IrrigationManagerReact

Frontend irrigation management system (React TS)
1 stars 0 forks source link

React - BUG: PlantList data grid unable to hide columns #33

Closed TJRawlins closed 6 months ago

TJRawlins commented 6 months ago

Unable to hide columns. When clicking any of the hide column settings in the PlantList MUI data grid, nothing happens.

Need to add the hideable option and set it to true for each column that can be hidden https://mui.com/x/react-data-grid/column-visibility/

TJRawlins commented 6 months ago

Using columnVisibilityModel disables ability to filter hide columns. Added a isMobile and isFull bool constant to determine if grid is in mobile view. If isMobile view instance of grid with columnVisibilityModel will be rendered. If in isFull, instance of grid without columnVisibilityModel will render, allowing for columns to be hidden by user selection.