material-table icon indicating copy to clipboard operation
material-table copied to clipboard

Is it possible to hide instead of disable buttons with isEditable?

Open ryanjohndunne opened this issue 6 years ago • 1 comments

Looking to hide the buttons when they aren't editable as they'll be replaced with action buttons.

ryanjohndunne avatar Dec 20 '19 05:12 ryanjohndunne

You can replace 'disabled' with 'hidden' or add it by modifying '/material-table/dist/material-table.js' onRowUpdate and onRowDelete.

disabled: calculatedProps.editable.isEditable && !calculatedProps.editable.isEditable(rowData)

v1.54.0 ( isEditable/isDeletable don't work after)

konstantinpachemski avatar Jan 23 '20 16:01 konstantinpachemski