-
Notifications
You must be signed in to change notification settings - Fork 143
Description
I need a way of confirming new input from the user. "onValidate" seems to me a perfect event to show a confirmation window to the user and reject or accept the new data based on user's decision.
"onUpdate" works just fine but "onValidate" doesn't get triggered.
Here is my initialization:
table.MakeCellsEditable({ "onUpdate": cellDataUpdated, "onValidate": cellDataValidate, ...
function cellDataValidate(cell, row, newValue){ console.log("Cell: " + cell); console.log("Row: " + row); console.log("New value: " + newValue); return false; }
function cellDataUpdated(updatedCell, updatedRow, oldValue) { console.log("Old value: " + 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()); ... }
sorry for mess with the code - I couldn't get it formated properly.