Topic: Table Pagination

master@mastersistemas.net pro asked 5 years ago


Good afternoon, following the documentation on the MDB website, to disable paging need to pass:
 pagination={false} Staying like this:
<MDBDataTable

pagination={false}

striped

bordered

hover

data={data}

/>

However, this error returns this error in the console:

index.js:2178 Warning: Received `false` for a non-boolean attribute `pagination`.

If you want to write it to the DOM, pass a string instead: pagination="false" or pagination={value.toString()}.

If you used to conditionally omit it with pagination={condition && value}, pass pagination={condition ? value : undefined} instead.
    in table (created by t)
    in div (created by t)
    in t (created by d)
    in div (created by d)
    in d (created by t)
    in div (created by t)
    in div (created by t)
    in t (at FinanceiroFormaPagamento.js:127)
    in div (at FinanceiroFormaPagamento.js:126)
    in div (created by t)
    in t (at MyModal.js:17)
    in div
    in div
    in div (created by t)
    in t (created by TransitionGroup)
    in span (created by TransitionGroup)
    in TransitionGroup


Simulating in the MDB package itself: Img

asifyali free answered 5 years ago


Is there a way to set default page size when initializing? thanks


Jakub Mandra staff commented 5 years ago

Unfortunately there is no option. 
We should add this and some other features soon.


Jakub Mandra staff answered 5 years ago


Good morning, Sorry to tell, but there is a mistake in the docs, should be
paging={false}
Thank you for posting the problem.   Regards, Jakub

Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue

  • ForumUser: Pro
  • Premium support: No
  • Technology: MDB React
  • MDB Version: 4.7.0
  • Device: Desktop
  • Browser: All
  • OS: All
  • Provided sample code: Yes
  • Provided link: Yes