attachProgress

assigns handler for data saving actions

void attachProgress(function start,function end,function error);
startfunctionhandler will be called for data saving start
endfunctionhandler will be called for data saving end
errorfunctionhandler will be called for data saving error

Example

webix.dp($$("myview")).attachProgress(function(){
    webix.message("Saving...");
}, function(){
    webix.message("Saved!");
}, function(response){
    webix.message("Error!");
});

Back to top