setSortDirectionClass(value);
value. String. Sorting direction. May take values: "Asc" - ascending, "Desc" - descending, "" - no sorting.
The setSortDirectionClass method sets sorting icon direction.
The method sets only the sorting icon, and not sorting itself.
Executing the example requires the SimpleTreeList component with the Tree identifier (see Example of Creating the SimpleTreeList Component).
// Get title
caps = Tree.getCaptions();
cap = caps.getCaptions()[0];
// Set sorting icon for the first column
cap.setSortDirectionClass("Asc");
After executing the example a sorting icon is set for the first column.
See also: