material-table
material-table copied to clipboard
Selection not working in material table
Problem I have made selection: true but I am having problem in material-table which is the checkboxes do not get selected whenever I click them. Can anyone tell me the reason?
Code
<MaterialTable
columns={columns}
data={dummyData}
options={{
search: false,
selection: true,
showTitle: false,
rowStyle: {
fontSize: 12,
},
paging: false,
}}
icons={tableIcons}
editable={{
onRowUpdate: (newData, oldData) =>
new Promise((resolve) => {
handleRowUpdate(newData, oldData, resolve);
}),
onRowAdd: (newData) =>
new Promise((resolve) => {
handleRowAdd(newData, resolve);
}),
onRowDelete: (oldData) =>
new Promise((resolve) => {
handleRowDelete(oldData, resolve);
}),
}}
/>
Problem I have made selection: true but I am having problem in material-table which is the checkboxes do not get selected whenever I click them. Can anyone tell me the reason?
Code
<MaterialTable columns={columns} data={dummyData} options={{ search: false, selection: true, showTitle: false, rowStyle: { fontSize: 12, }, paging: false, }} icons={tableIcons} editable={{ onRowUpdate: (newData, oldData) => new Promise((resolve) => { handleRowUpdate(newData, oldData, resolve); }), onRowAdd: (newData) => new Promise((resolve) => { handleRowAdd(newData, resolve); }), onRowDelete: (oldData) => new Promise((resolve) => { handleRowDelete(oldData, resolve); }), }} />
I have the same issue , could you find any solution?