Documentation

markSorting

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

void markSorting(string column_id,string dir);

Parameters

column_idstringcolumn ID
dirstringsorting direction

See also

Example

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

Details

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

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

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

Back to top