Salut,
je veux ajouter du highlight a ma datatable, j'ai suivi le Tutorial de l'API qui recommande ce code:
Mais je me sais ou et comment définir la méthode
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7 $('td', oTable.fnGetNodes()).hover( function() { var iCol = $('td').index(this) % 5; var nTrs = oTable.fnGetNodes(); $('td:nth-child('+(iCol+1)+')', nTrs).addClass( 'highlighted' ); }, function() { $('td.highlighted', oTable.fnGetNodes()).removeClass('highlighted'); } );,
Code : Sélectionner tout - Visualiser dans une fenêtre à part fnGetNodes()
J’espère avoir une réponse, Merci.
Partager