Caplin Trader 5.1.0

Class: module:ct-element/handler/grid/GridColumnRefinerRendererHandler

module:ct-element/handler/grid/GridColumnRefinerRendererHandler()

new module:ct-element/handler/grid/GridColumnRefinerRendererHandler()

A GridColumnRefinerRendererHandler handles clicks on header cells to generate a filter/sort component.

Implements:
To Do:
  • Use a gridDefinitions attribute other than primaryFieldType

Methods

finalise()

Implements:

initialise()

Implements:

onclick(event, renderer, attributes)

When user clicks on header, display the filter/sort component.

Parameters:
Name Type Description
event MouseEvent

the browser's click event

renderer module:ct-element/renderer/StreamRenderer
attributes object

These attributes come from the renderer definitions XML.

Properties
Name Type Attributes Description
component string

alias for the component you wish to create

filterType string <optional>

a filter type defined on module:ct-grid/GridColumnFilter e.g. "WILDCARD".

toString()

Implements:
  • module:ct-element/Handler#toString