I have a question about setting the style attributes for a data cell in the jQuery.DataTable
. I was able to set the width for each column when initializing the
you can also use something like that to another kind of customizations : inside fnRender you can insert label, span, and set class or style of the element inside this "td"
"aoColumns": [
{ "sTitle": "Ativo","sClass": "center","bSearchable": true,
"fnRender": function(obj) {
var sReturn = obj.aData[ obj.iDataColumn ];
return "/"+sReturn.toLowerCase()+"";
}
},