Skip to content

onValidate callback doesn’t executed #86

@larrybg

Description

@larrybg

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions