ping

aborts long processes

function ping;

Example

webix.ui({
    margin:30, 
    rows: [
        {
            id:"pivot", 
            view:"pivot",
            ping:function(start){
                var now = (new Date()).valueOf();
                //break if processing is longer than 3 seconds 
                if (now - start > 3*1000){
                    alert("Too complex parameters, aborting");
                    throw new Error("Aborting...");
                }
            },
            height:400, 
            width:1000,
            data: bad_dataset,
            max: true
         },
        { cols:[
            { view:"button", value:"Build Pivot (fast)"},
            { view:"button", value:"Build Pivot (slow)"}
        ]}
    ]
});

Back to top
If you have not checked yet, be sure to visit site of our main product Webix html5 framework and page of javascript pivot table product.