我需要在数据表列中进行内联编辑,以下是我的代码。
Contact.DataTable = $('#otable').DataTable( {
"ajax": {
"url" : '/Contact/' + Contact.id,
"dataSrc": function(json) {
return json.data;
},
},
"responsive": true,
"columns": [
{ "data": "id"},
{ "data": "Course", "sClass": "course" },
{ "data": "Category", "sClass": "category" },
{ "data": "name" },
{
"render": function ( data, type, method, meta ) {
return Contact.saveContact(method);
}
},
]
} );
我需要对字段进行内联编辑