Topic: Extending Datatables

parson premium asked 3 years ago


Hi,

We are currently updating our website from MDB4 to MDB5 and I have a couple of questions regarding extending the datatables component.

  1. 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?
  2. 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 answered 3 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



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: Premium
  • Premium support: Yes
  • Technology: MDB Standard
  • MDB Version: 1.0.0
  • Device: PC
  • Browser: All
  • OS: All
  • Provided sample code: No
  • Provided link: No