onBeforeSort

fires before sorting dataset

boolean onBeforeSort(string/function by,string dir,string/function as){ ... };

Parameters

bystring/functiontemplate of sort-by field
dirstringdirection of sorting
asstring/functiontype of sorting

Returns

booleanreturning false will prevent sorting

Example

some.attachEvent("onBeforeSort", function(by, dir, as){
    //... some code here ... 
    //return false to block operation
    return true;
});

Details

Returning false from the event handler will block further processing.

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