About ajax data and datatable object
About ajax data and datatable object
yu yen kan
Posts: 65Questions: 31Answers: 0
I using a datatable that load data by ajax
var table= $('#table').DataTable({
ajax: "server url",
column: [ {data: 'id', title:'my id'} ]
});
ajax response is only contain id;
is that possible my datatable using below object?
function object(id){
this.id = id;
this.idString = function(){
return "#" + id;
}
}
This discussion has been closed.
Answers
If I understand your question correctly you probably want to use
columns.render
to prefix the#
to your ID.Kevin