Caplin Trader 5.1.0

Class: module:ct-grid/decorator/ColumnSortDecorator

module:ct-grid/decorator/ColumnSortDecorator(decoratorConfig)

new module:ct-grid/decorator/ColumnSortDecorator(decoratorConfig)

Constructs a ColumnSortDecorator instance — end-users will never need to do this themselves since grids are fully constructed based on their XML definition files by the module:ct-grid/GridComponentFactory class.

The ColumnSortDecorator adds sort behaviour to the column headers. This is activated by a click on the column header and results in the sort order changing between none, ascending and descending, in that order.

Parameters:
Name Type Description
decoratorConfig object

config object (unused)

Implements:

Members

(static, readonly) SORT_ACTION :String

What action on the column header triggers sorting.

Type:
  • String

Methods

onClose()

Implements:
See:

onColumnsAdded()

Implements:
See:

onContainerHtmlRendered()

Implements:
See:

onSortColumnChanged()

Implements:
See:

setGridView()

Implements:
See: