如何将操作列设置为 material ui table ReactJs 中的最后一列?

How to set action column as last column in material ui table ReactJs?

我想将操作列设置为最后一列。这是我的代码:

<MaterialTable
  title="Patient List"
  columns={state.columns}
  data={data}
  onRowClick={(event, rowData) => handleCLickRow(event, rowData)}
  editable={{}),
 />

我相信您正在寻找可以与 options 对象一起传递的 actionsColumnIndex

完整的道具列表可以在这里找到:https://material-table.com/#/docs/all-props

options={{actionsColumnIndex: -1}}

https://material-table.com/#/docs/features/actions