Is there a way to pin the Actions column in material-react-table?

319 views Asked by At

I want to pin the actions column in a material-react-table on the right by default. is there any way to achieve this?

I tried using the following, but it did not return the desired result. initialState={{ columnPinning: { right: ["RowActions"] }, }}

1

There are 1 answers

0
Tarik Nazorek On

The default name for row actions is mrt-row-actions, you may try this:

initialState: {
      columnPinning: { right: ['mrt-row-actions'] },
},