Fixed Columns

Material Table supports fixed columns, both from the left and the right end.

Usage#

import MaterialTable from '@material-table/core';
<MaterialTable
options={{
fixedColumns: { left: number, right: number },
}}
/>;
  • For keeping left columns fixed in the table

    • fixedColumns: { left: number } (value should be a non-zero integer)
  • For keeping right columns fixed in the table

    • fixedColumns: { right: number } (value should be a non-zero integer)

Live Demo#

note

See here for more on the GLOBAL_VARS we use in our demos

Live Editor
Result
Live Editor
Result