Caplin Trader 4.2.1

Class: module:caplin/grid/refine/component/presenter/GenericRefinerPresentationModel

module:caplin/grid/refine/component/presenter/GenericRefinerPresentationModel

A generic PresentationModel for grid column refinement panels. It can be composed of PresentationNodes that handle sorting and filtering of the column.

Constructor

new module:caplin/grid/refine/component/presenter/GenericRefinerPresentationModel(nodes)

Extends:
Parameters:
Name Type Description
nodes object map of either 1 or 2 PresentationNodes
Properties
Name Type Description
sort module:caplin/presenter/node/PresentationNode responsible for applying sort order to column
filter module:caplin/presenter/node/PresentationNode responsible for applying filter to column
Implements:

Extends

Methods

apply()

Applies current refinements to the grid column. If inputs validate successfully, it triggers the module:caplin/grid/refine/GridColumnRefinerEvents#event:REFINER_ACTION_COMPLETE, signifying that it is to be closed.

clear()

Clears all refinements. It triggers the module:caplin/grid/refine/GridColumnRefinerEvents#event:REFINER_ACTION_COMPLETE, signifying that it is to be closed.

onClose()

Close the panel

onOpen()

Open the panel

setColumn()

Set the column which the model should apply refinements to
Implements: