proxy.binary

webix.proxy.binary

webix.proxy.binary 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
11
webix.proxy.binary = {
    $proxy:true,
    load:function(view, callback){
        var parts = this.source.split("@");
        var ext = parts[0].split(".").pop();
        return webix.ajax().response("arraybuffer").get(parts[0]).then(function(res){
            var options = { ext:ext, dataurl : parts[1] };
            webix.ajax.$callback(view, callback, "", { data:res, options:options }, -1);
        });
    }
};