proxy.json

webix.proxy.json

webix.proxy.json helper.

Please look into the linked official documentation.

References

helpers
ajax().

External references

Official documentation page.

Code

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
webix.proxy.json = {
    $proxy:true,
    load:function(view, callback){
        webix.ajax(this.source, callback, view);
    },
    save:function(view, update, dp, callback){
        var ajax = webix.ajax().headers({ "Content-Type":"application/json" });
        return webix.proxy.rest._save_logic.call(this, view, update, dp, callback, ajax);
    }
};