Topic: Extending Datatables
Hi,
We are currently updating our website from MDB4 to MDB5 and I have a couple of questions regarding extending the datatables component.
- The jquery implementation of datatables allowed us to add add buttons to export the data in various formats such as csv and Excel. Is this option there in this implementation?
- Is it possible to add a class to each row with a data attribute or will I have to map over each row and add it?
Thank you.
Magdalena Dembna staff premium answered 4 years ago
Unfortunately, the answer to both of those question is no - the Datatable in version 5 doesn't rely on an external library and my differ in same ways. We are planning on releasing an integration for jQuery Datatable plugin in the future.
As for adding the custom class by mapping - I would suggest, when possible, referencing rows by .datatable-body tr
as rows get rerendered, for example, when filtering or pagination occurs.
Best regards, Magdalena
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- User: Pro
- Premium support: Yes
- Technology: MDB Standard
- MDB Version: 1.0.0
- Device: PC
- Browser: All
- OS: All
- Provided sample code: No
- Provided link: No