Highlight row in FixedColumn
Highlight row in FixedColumn
freecex
Posts: 25Questions: 4Answers: 0
Hi everybody!
I've got a DT with first 3 column froze.
I'd like to color all row on mouseover.
I've got this function
$('#myDT tbody').on('mouseenter', 'td', function () {
var colIdx = table.cell(this).index().column;
if (rowIdx != -1) {
$(table.row(rowIdx).nodes()).removeClass('highlight');
}
rowIdx = table.cell(this).index().row;
$(table.cells().nodes()).removeClass('highlight');
$(table.column(colIdx).nodes()).addClass('highlight');
$(table.row(rowIdx).nodes()).addClass('highlight');
});
but highlight only non fixed column.... any suggestion?
regards!
This discussion has been closed.
Replies
Any idea?
Hi @freecex ,
This thread should help, it's asking the same thing.
Cheers,
Colin