I'm using DataTable jquery plugin to show some data in my app...
I have this column definition:
columns: [
{ "data" : "appName" },
{ "data" : "uuid" },
{
"data" : "Enabled",
'render': function(data, type, row)
{
console.log(data)
return '<input type="checkbox" checked = "' + data + '" >';
}
}
and coresponding fields in array of objects passed from jquery. console.log(data) returns proper value, true of false for every record in table, but checkbox is always checked.
What i'm doing wrong here?