Skip to content

Commit 1136ef8

Browse files
committed
[no ci] [Doc] add a section to explain explicitly how to disable checkboxes in datagrid
1 parent c670ab1 commit 1136ef8

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

docs/Datagrid.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1201,3 +1201,17 @@ const MyCustomList = () => {
12011201
);
12021202
};
12031203
```
1204+
## How to disable checkboxes
1205+
You can disable bulk actions altogether by passing `false` to the `bulkActionButtons` prop. In this case, the checkboxes column doesn’t show up anymore.
1206+
1207+
```tsx
1208+
import { Datagrid, List } from 'react-admin';
1209+
1210+
export const PostList = () => (
1211+
<List>
1212+
<Datagrid bulkActionButtons={false}>
1213+
...
1214+
</Datagrid>
1215+
</List>
1216+
);
1217+
```

0 commit comments

Comments
 (0)