Holiday Notice: Support will be provided on a limited scale from December 24th, 2024, to January 2nd, 2025. Happy holidays and a wonderful New Year!


Topic: Datatable option data-pagination="false" throws error provided type "string" but expected type "boolean".

Stokmanis free asked 3 years ago


I want to remove the pagination from Datatable. I add property data-pagination="false"

Javascript error is thown Uncaught Error: DATATABLE: Option "pagination" provided type "string" but expected type "boolean".

https://mdbootstrap.com/snippets/standard/stokmanis/3232052


Michał Duszak staff answered 3 years ago


Hello, thank you for your feedback. We will bring this attribute back to work. Until then please turn the pagination off via JS: https://mdbootstrap.com/snippets/standard/m-duszak/3232369

mdb.Datatable.getInstance(document.querySelector('.datatable')).update({}, {
pagination: false,
})


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: Free
  • Premium support: No
  • Technology: MDB Standard
  • MDB Version: MDB5 3.9.0
  • Device: laptop
  • Browser: chrome
  • OS: windows 10
  • Provided sample code: No
  • Provided link: Yes
Tags