Topic: Datatables - custom css
svanlippevelde priority asked 1 year 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 ?
Thanks.
<div class="datatable">
<table>
<thead>
<tr>
<th>Nom.</th>
<th> </th>
</tr>
</thead>
<tbody>
<tr>
<td>Informations</td>
<td class="text-end">
<button type="button" class="btn btn-secondary">
<i class="fa-regular fa-eye"></i> Voir
</button>
</td>
</tr>
</tbody>
</table>
</div>
Kamila Pieńkowska staff answered 1 year 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.
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- 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