Skip to content
Advertisement

Want hide all row select option but not multiple row select options from MUIDatatables.Is it possible?

I want to hide the checkbox from header row. From which all the rows can be selected. I just want to select multiple option by clicking each. So I want to hide all row select option.

enter image description here

Advertisement

Answer

I believe that selectableRowsHeader option is what you are looking for.

<MUIDataTable
  title={"Title"}
  data={data}
  columns={columns}
  options={{
    selectableRowsHeader: false
  }}
/>

https://codesandbox.io/s/muidatatables-hide-select-all-l8o1z?file=/index.js

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement