Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

onValidate callback doesn’t executed #86

Open
larrybg opened this issue Apr 30, 2020 · 0 comments
Open

onValidate callback doesn’t executed #86

larrybg opened this issue Apr 30, 2020 · 0 comments

Comments

@larrybg
Copy link

larrybg commented Apr 30, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant