I have a datatable that fetches records from database with ajax. I want to add the edit tooltip like jquery-datatables-editor extension to datatables but for free. Is there any plugin to do this? if not, can any one help me to do this manually?
This is my JavaScript code:
$('#table_id').DataTable({
"serverSide": true,
"processing": true,
"ajax": function (data, callback, settings) {
$.ajax({
url: '/some url',
type: 'GET',
data: data,
success: function (data) {
console.log(data)
}
});
},
"columns": [{
"title": "edit",
"data": null,
"className": "center",
"defaultContent": '<a href = "" class = "editor_edit"> Edit </a> / <a href = "" class = "editor_remove"> Delete </a>'
}, {
"title": "name",
"data": "name"
}, {
"title": "id",
"data": "id"
},
]
});
from Is there any way to edit rows in DataTables?
No comments:
Post a Comment