Caplin Trader 5.1.0

Class: module:ct-grid/decorator/SelectionDecorator

module:ct-grid/decorator/SelectionDecorator(config)

new module:ct-grid/decorator/SelectionDecorator(config)

Constructs a SelectionDecorator 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 SelectionDecorator is used to allow the user to select rows, so that operations can be applied to those rows.

Applications that perform their own layout management, and that do not use webcentric for this purpose will need to ensure that the module:ct-component/ComponentLifecycleEvents#onActivate method is invoked for grids that use the selection decorator.

Parameters:
Name Type Description
config Object

decorator configuration

Implements:

Methods

onActivate()

Implements:
See:
  • module:ct-grid/decorator/GridViewListener#onActivate

onClose()

Implements:
See:
  • module:ct-grid/decorator/GridViewListener#onClose

onContainerHtmlRendered()

Implements:
See:
  • module:ct-grid/decorator/GridViewListener#onContainerHtmlRendered

onDeactivate()

Implements:
See:
  • module:ct-grid/decorator/GridViewListener#onDeactivate

onRowSelectionChanged()

Implements:
See:

onViewRedrawn()

Implements:
See:
  • module:ct-grid/decorator/GridViewListener#onViewRedrawn

setGridView()

Implements:
See: