onBeforeSort

fires before sorting of the dataset

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

Parameters

bystring/functionthe template of the sort-by field
dirstringthe direction of sorting
asstring/functionthe type of sorting

Returns

booleanreturning false will prevent sorting

Example

view.data.attachEvent("onBeforeSort", function(by, dir, as){
    //... some code here ...
});

Details

Returning false from the event handler will block further processing, and data will not be sorted.

See also
Back to top
If you have not checked yet, be sure to visit site of our main product Webix lightweight js framework and page of chart widget product.