Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 82249

DT 2.0 : dt-type-numeric class to cells with FA icons

$
0
0

Link to test case:
Debugger code (debug.datatables.net):
Error messages shown:
Description of problem:

Hi,

I've just upgrade to datatable 2.0 (congratulations by the way !)

I'm wondering if it's normal that dt-type-numeric class is added to cells containing an icon <i></i> (font awesome).

Example :

<td class="dt-type-numeric"><i class="fa-solid fa-magnifying-glass" title="Fiche détaillée"></i></td>

<td class="dt-type-numeric"><a data-fancybox="formulaire" data-type="iframe" href="fb_ajouter_personne3cols.htm&tcom1=CM&tcom20=851"><i class="fa-solid fa-user-plus" title="Ajouter une personne"></i></a></td>

I've added a class in the column defs to change the text alignment in theses cases :

    { className: 'icone', targets: [0, 1, 10, 12] }

Also, I'm wondering where I can find the new features, I saw the mention « Since: DataTables 2.0.0 » on some pages of the documentation, try to click on it hoping to see the list (I'm a dreamer, I know...)

Congratulation again for the new version of datables :)


Viewing all articles
Browse latest Browse all 82249

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>