Material-table: custom pageSizeOptions does not accepts array of options

Created on 26 Mar 2019  Â·  7Comments  Â·  Source: mbrn/material-table

I am trying to set pageSizeOptions = {[10,20,50,100]} but still see default values which are 5,10,20

help wanted

Most helpful comment

Hi @kuantayevs ,

You should add it to options prop:

<MaterialTable
 .....
  options={{
    pageSizeOptions = {[10,20,50,100]}
  }}
/>

Can you try this please?

All 7 comments

Hi @kuantayevs ,

You should add it to options prop:

<MaterialTable
 .....
  options={{
    pageSizeOptions = {[10,20,50,100]}
  }}
/>

Can you try this please?

it is already inside of options

On Wed, Mar 27, 2019 at 00:51 Mehmet Baran notifications@github.com wrote:

Hi @kuantayevs https://github.com/kuantayevs ,

You should add it to options prop:

.....
options={{
pageSizeOptions = {[10,20,50,100]}
}}/>

Can you try this please?

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/mbrn/material-table/issues/382#issuecomment-476973877,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AQL8cL20n-4qj-MAxLWoEC9RlsRQljEJks5vavjjgaJpZM4cMehf
.

Can you share table usage code, please? Because i tried it and it is working.

Which version of material-table do you use?

I just updated. Everything work! Sorry for that!

On Wed, Mar 27, 2019 at 08:10 Mehmet Baran notifications@github.com wrote:

Which version of material-table do you use?

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/mbrn/material-table/issues/382#issuecomment-477122760,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AQL8cHcp2W2KsfTZ5yjr08z1kjGQnLJUks5va1_SgaJpZM4cMehf
.

I just updated. Everything work! Sorry for that!
…
On Wed, Mar 27, 2019 at 08:10 Mehmet Baran @.*> wrote: Which version of material-table do you use? — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <#382 (comment)>, or mute the thread https://github.com/notifications/unsubscribe-auth/AQL8cHcp2W2KsfTZ5yjr08z1kjGQnLJUks5va1_SgaJpZM4cMehf .

Not problem @kuantayevs , feel free to ask.

Hi @kuantayevs ,

You should add it to options prop:

<MaterialTable
 .....
  options={{
    pageSizeOptions = {[10,20,50,100]}
  }}
/>

Can you try this please?

Just to clarify, pageSizeOptions should take a colon instead of an equals sign.

<MaterialTable
 .....
  options={{
    pageSizeOptions: [10,20,50,100]
  }}
/>
Was this page helpful?
0 / 5 - 0 ratings

Related issues

KKrisu picture KKrisu  Â·  3Comments

jlgreene2 picture jlgreene2  Â·  3Comments

terapepo picture terapepo  Â·  3Comments

ModPhoenix picture ModPhoenix  Â·  3Comments

kfirshahar picture kfirshahar  Â·  3Comments