onBeforeEditStop
fires before editing is finished
boolean onBeforeEditStop(string id,object state,object editor,string view){ ... };
Parameters
id | string | the id of the edited item |
state | object | contains two properties: old - the old value and value - the new value |
editor | object | editor object |
view | string | the view where editing occurs |
Returns
boolean | returning 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