function() doesnt work when in responsive
function() doesnt work when in responsive
ofb.rielcantalejo
Posts: 11Questions: 5Answers: 1
I have a function that changes the table header text and it works fine.
the problem is that when the table is in responsive,
the function doest work and the text doesnt change anymore.
any idea how will i solve this?
'initComplete': function(settings){
var api = new $.fn.dataTable.Api(settings);
api.columns().header().each(function(column){
if($(column).text() === 'blac'){
$(column).text(window.Labels.blac);
}
This discussion has been closed.
Answers
Currently there is no API to change the header text in DataTables. The problem is that DataTables is using a cached value rather than reading from the document.
That is something that is going to be resolved in the next major revision of DataTables.
Allan