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,
})
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- 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