onBeforeEditStop

fires before editing is finished

boolean onBeforeEditStop(string id,object state,object editor,string view){ ... };

Parameters

idstringthe id of the edited item
stateobjectcontains two properties: old - the old value and value - the new value
editorobjecteditor object
viewstringthe view where editing occurs

Returns

booleanreturning false will prevent editing

Example

$$("fmanager").attachEvent("onBeforeEditStop",function(id,state,editor,view){
    var newValue = state.value
    if(...){
        return false;
    }
    return true;
});

Related samples

See also
Back to top