onChange

fires when any change occurs

void onChange(string mode,string name,string oldName){ ... };

Parameters

modestringthe operation name
namestringthe name of the page
oldNamestringthe name of the page after renaming

Example

webix.ui({
    view:"spreadsheet",
    toolbar:"full",
    url: "/server/data",
    on:{
        onChange: function(mode, name, oldName){
            switch (mode) {
                case "update":
                    webix.ajax().headers({
                        "Content-type" : "application/json"
                    }).put(url+name, this.serialize());
                    break;
                // ... other operations
            }
        }
    }
});

Related samples

Details

Available operation names:

  • "update"
  • "rename"
  • "remove"
  • "insert"
Back to top