Plugin searchHighlight
Plugin searchHighlight

Hello,
The plugin match all columns, but sometimes i have HTML element in my Datatable and would like not use the hightligh search on the columns which contains the element html.
It's possible to have the searchHiglight on a specific columns?
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Hi @ArmandArthur ,
I think you should be able to change the code to do that. If you change line 46 to be
where
[x,y,z]
are the columns you want applied, it may do the trickCheers,
Colin
I think you are right, thx
It's possible to modify the search global on specific columns?
I modified this line
body.highlight( $.trim( table.search() ).split(/\s+/) );
by
var columns = [0,1,2,3,4,5];
table.columns(columns).every( function () {
var column = this;
column.nodes().flatten().to$().unhighlight({ className: 'highlight' });
column.nodes().flatten().to$().highlight( $.trim( table.search() ).split(/\s+/), { className: 'highlight' } );
} );
and it works