Let's get into the problem. In datatable.js, to display the columns I define as follows:
"aoColumns": [
{ "mDataProp": "IdProcesso", "sTitle": "Numero" }
]
If you need to perform some function:
{
"mDataProp": "DataAbertura", "sTitle": "Data Abertura",
"fnRender": function (oObj) {
return //minha function vem aqui!
}
},
Now comes the question, is it possible for me to add this function to the Json object dynamically? When I say dynamic I mean the fact that this object will be created by another function and at the end it returns me a string generated by JSON.stringify and the function gets unusable. I hope I have been able to explain my doubt.