Topic: Datatables - custom css

svanlippevelde priority asked 8 months ago

Hi, I'm currently working with mdb.Datatable, I'm trying to customise it. All the data are injected in the HTML page and not with JS, how can I manage this ?


<div  class="datatable">

            <td class="text-end">
                <button type="button" class="btn btn-secondary">
                    <i class="fa-regular fa-eye"></i> Voir

Kamila Pieńkowska staff answered 8 months ago

You need to wrap cell content in the div tag and add classes and styles to that div. Styles and classes added to td itself are stripped during rendering.

Please insert min. 20 characters.


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



Specification of the issue

  • ForumUser: Priority
  • Premium support: Yes
  • Technology: MDB Standard
  • MDB Version: MDB5 6.4.2
  • Device: Macbook
  • Browser: Firefox
  • OS: Ventura
  • Provided sample code: No
  • Provided link: No