Hide the addRowsComponent #174
-
How would I hide/remove the addRowsComponent? It seems that this should have worked: Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hello @loztech, You could pass Otherwise what you can do is passe an empty component: const Emptycomponent = () => {
return null
}
const App = () => {
return (
<DataSheetGrid
addRowsComponent={Emptycomponent}
/>
)
} I'll admit this is a bit convoluted. I will make sur you can pass |
Beta Was this translation helpful? Give feedback.
-
Either use |
Beta Was this translation helpful? Give feedback.
Either use
lockRows={false}
to prevent the user from ever adding / removing rows.or use
addRowsComponent={false}
to still let the user add / delete rows using right click, but hiding the add row widget at the bottom