onBeforeEditorAction

fires when the user clicks Save/Remove buttons in the Kanban editor

void onBeforeEditorAction(string action,object editor,object obj);
actionstring"remove" or "save"
editorobjectthe Editor object
objobjectthe data item object

Example

$$("kanban").attachEvent("onBeforeEditorAction",function(action,editor,data){
    if (action === "save" && !editor.getForm().validate()){
        return false;
    }
});

Details

The event is handy if you add validation for your custom editor.

See also
Back to top
Join Our Forum
We've retired comments here. Visit our forum for faster technical support, connect with other developers, and share your feedback there.