How to disable delete action in List view in react admin?

Putting false to bulkActionButtons of List disables bulk actions.

<List bulkActionButtons={false}>
  ..
</List>

transGLUKator mentioned about bulkActionButtons but it took time for me to find value to disable bulk actions.

Reference

Source code of List of react-admin: https://github.com/marmelab/react-admin/blob/93bc43fcec652e6c2eaaa2dc7bdf45b2f64e12fb/packages/ra-ui-materialui/src/list/List.js#L128


Well I figured it out. <List/> component has bulkActionButtons prop, where you can customize how bulk actions work. Here is the link to docs

Tags:

React Admin