-
Notifications
You must be signed in to change notification settings - Fork 143
Description
updatedRow.data() is returning [object Object]
Any ideas why?
var ResultsTable = $("#resultstable").DataTable({ lengthChange: true, pageLength: 25, filter: true, deferRender: true, responsive: true, processing: true, language: {"zeroRecords": " "}, columns: [{ "data": "ifName" },{ "data": "alias" },{ "data": "operStatusStr" },{ "data": "adminStatusStr" }, { "data": "ReservedBy" }, { "data": "ReservedDescription" }, { "data": "ReservedDate" } ] });
function myCallbackFunction (updatedCell, updatedRow, oldValue) { console.log("The new value for the cell is: " + updatedCell.data()); console.log("The values for each cell in that row are: " + updatedRow.data()); }
ResultsTable.MakeCellsEditable({ "onUpdate": myCallbackFunction, "inputCss":"my-input-class", "columns": [5], "allowNulls": { "columns": [5], "errorClass": "error" }, "confirmationButton": { "confirmCss": "my-confirm-class", "cancelCss": "my-cancel-class" } });
output:
The new value for the cell is: test
The values for each cell in that row are: [object Object]