marks the sorted column with a dedicated sign (asc/desc) in the header

void markSorting(string column_id,string direction);


column_idstringthe column ID
directionstringthe sorting direction: "asc" or "desc"


dtable = webix.ui({view:"datatable", ...})
dtable.markSorting("title", "asc");

Related samples


The method is designed for the cases of programmatic sorting to indicate that data in the datatable has been sorted.

dtable.sort("title", "asc");
dtable.markSorting("title", "asc");

The method can be called with no parameters to remove all sorting signs from the datatable headers.

See also
Back to top
If you have not checked yet, be sure to visit site of our main product Webix web development library and page of javascript datatable product.