markSorting

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

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

Example

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

Related samples

Details
  • The method is designed for placing correct arrows in headers if the data have been sorted programmatically.
dtable.sort("title", "asc");
dtable.markSorting("title", "asc");
  • The method can be called with no parameters to remove all arrows 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 ui component library and page of javascript excel viewer product.