mui-datatables icon indicating copy to clipboard operation
mui-datatables copied to clipboard

More control over MUIDataTableToolbarSelect popping up...

Open JordanKadish opened this issue 8 years ago • 2 comments

Issue

I'd like to be able to change the top bar that renders when a row is selected (containing a trashbin icon and "x rows selected"), so instead of showing a delete icon, it will show a custom button I've made to do my own function. In other words, the onRowsSelect function should allow developers more control over what shows up when a checkbox is ticked. My reason for this: If I have users using this table, I'd like to prevent them from seeing/being able to delete rows in the table, but instead have my own options of what should happen when a row is selected.

Your Environment

Tech Version
mui-datatables 1.1.2
node 9.2.1
OS Linux

JordanKadish avatar Mar 29 '18 04:03 JordanKadish

Hey @JordanKadish thanks the feedback. Your request aligns with another ticket #14 to allows developers controlled components. I'm first going to start by providing the callbacks so developers can at least build controlled components.

After that, I want combine tickets like these to see which customization of UI can be done in a way that makes sense to give even greater control.

gregnb avatar Mar 29 '18 09:03 gregnb

Closing this ticket because this is being looked at in #47 so follow there

gregnb avatar May 14 '18 23:05 gregnb