markSorting

marks the sorted column with arrow (asc/desc) in the header

void markSorting( [string column_id,string direction,boolean preserve] );
column_id
stringoptional, the column ID direction
stringoptional, the sorting direction: "asc" or "desc" preserve
booleanoptional, instructs to preserve previous sorting marker

Example

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

Related samples

Details
dtable.sort("title", "asc");
dtable.markSorting("title", "asc");
See also
  • API
  • Articles
  • Back to top
    Join Our Forum
    We've retired comments here. Visit our forum for faster technical support, connect with other developers, and share your feedback there.
    If you have not checked yet, be sure to visit site of our main product Webix ui widget library and page of javascript tree table product.