Add more size options to pagination (#23)

This commit is contained in:
dklimpel
2020-03-27 21:02:37 +01:00
committed by Manuel Stahl
parent 965645874c
commit 445c7fc327
2 changed files with 12 additions and 2 deletions

View File

@@ -1,8 +1,12 @@
import React from "react";
import { Datagrid, List, TextField } from "react-admin";
import { Datagrid, List, TextField, Pagination } from "react-admin";
const RoomPagination = props => (
<Pagination {...props} rowsPerPageOptions={[10, 25, 50, 100, 500, 1000]} />
);
export const RoomList = props => (
<List {...props}>
<List {...props} pagination={<RoomPagination />}>
<Datagrid>
<TextField source="room_id" />
<TextField source="name" />