Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disable/remove pagination from react material-table

Is there any way to disable/remove pagination from react material-table. Im using the material-table plugin for react and finding it very difficult to remove the pagination. Any help is much appreciated

like image 965
Leeyung Avatar asked Jul 17 '19 10:07

Leeyung


People also ask

How do I turn off pagination in react table?

I understand turning pagination off, it can be done by "pagination={false}" .

What is rowsPerPageOptions?

What is rowsPerPageOptions? rowsPerPageOptions: It is the array of integer/object values to display inside rows per page dropdown. It is of array data type, the default value is null. style: It is an inline style of the component. It is of string data type, the default value is null.03-Oct-2021.


1 Answers

you can add paging: false to your options:

<MaterialTable
        //other stuff...     
        options={{
          paging: false
        }}
      />

For a list with all props check here: https://material-table.com/#/docs/all-props

like image 69
rebecca Avatar answered Oct 18 '22 05:10

rebecca