ListCaption.setSortDirectionClass

Syntax

setSortDirectionClass(value);

Parameters

value. String. Sorting direction. May take values: "Asc" - ascending, "Desc" - descending, "" - no sorting.

Description

The setSortDirectionClass method sets sorting icon direction.

Comments

The method sets only the sorting icon, and not sorting itself.

Example

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:

ListCaption