I am trying to display a checkbox in the first table column. This is not part of the database. The only purpose is to select one row, so that enables the TableTool Edit/Delete buttons.
Per https://editor.datatables.net/examples/inline-editing/simple.html I did not put anything for the Editor.fields
for the checkbox column. What then displays is nothing in that column. What do I really need for the DataTable.columns
and the Editor.Fields
options for that checkbox. Below is what I have so far:
"tableTools": {
"sRowSelect": "single",
"sRowSelector": "td:first-child",
"aButtons": [
{ "sExtends": "editor_create", "editor": editor },
{ "sExtends": "editor_edit", "editor": editor },
{ "sExtends": "editor_remove", "editor": editor }
]
}
...
$('#TSSRAvail').DataTable( {
...
{
"data": null,
"type": "checkbox",
"defaultContent": "",
"orderable": false,
},