You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: