onBeforeSort of ui.google-map, Events Webix Docs

string/undefinedthe direction of sorting as
string/functionthe type of sorting
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.

If the third param is a function, the parameters of such a function are the following:

table.sort("#fieldName#", "desc", function(a, b, prop) {
   return a[prop] - b[prop];
})

See also

  • API

  • Articles

  • Back to top

    If you have not checked yet, be sure to visit site of our main product Webix mvc library and page of maps javascript api product.