markSorting
marks the sorted column with arrow (asc/desc) in the header
function markSorting( // optional, the column ID column_id?: string, // optional, the sorting direction: "asc" or "desc" direction?: string, // optional, instructs to preserve previous sorting marker preserve?: boolean): void
Example
Section titled “Example”dgrid = webix.grid({...})
dgrid.markSorting("title", "asc");
also check the next samples:
Details
Section titled “Details”- The method is designed for placing correct arrows in headers if the data have been sorted programmatically.
dgrid.sort("title", "asc");dgrid.markSorting("title", "asc");
- The method can be called with no parameters to remove all arrows from the datagrid headers.
See also
Section titled “See also”Articles
API