Bootstrap-Table Jquery how to individually edit a column in the event of loading table?
I've tried unsuccessfully using the all.bs.table and data-load-success events.
for(i=0;i < data.length; i++) {
total_media = parseFloat(total_media) + parseFloat(data[i].lucro);
data[i].lucro = ' test ' + String(data[i].lucro);
jQuery("#tabela").bootstrapTable('updateRow', {index: i, row: data[i] });
I tried it too:
jQuery(data).each(function(i){
total_media = total_media + parseFloat(data[i].lucro);
data[i].lucro = 'test ' + String(data[i].lucro);
jQuery("#tabela").bootstrapTable('updateRow', {index: i, row: data[i] });
and so:
var total_media = data.reduce(function(a, b){
lucro = b.lucro;
b.lucro = ' test ' + String(b.lucro);
jQuery("#tabela").bootstrapTable('updateRow', {index: a, row: b });
return a + parseFloat(lucro);
}, 0);
Bootstrap-Table Jquery how to individually edit a column in the event of loading table?
I have tried without success using all.bs.table and data-load-success events. Can you help me?