Caplin Trader 5.1.0

Class: module:ct-element/handler/ChangeHandler

module:ct-element/handler/ChangeHandler()

new module:ct-element/handler/ChangeHandler()

Notifies all registered module:ct-element/RendererEventListeners when the control value is changed by the user.

ChangeHandler is typically used in the XML Renderer Framework.

The event type is "change" and is triggered on the keyup and blur events if the element "value" attribute has changed in comparison to the elements previous value.

The previous value is stored on the element as the attribute "oldValue".

Extends:

Extends

Methods

finalise(renderer)

Allows the handler to perform tear-down on the renderer. This method is called after the renderer is unbound from the view.

Parameters:
Name Type Description
renderer module:ct-element/Renderer

The renderer that is being finalised.

Inherited From:

initialise(renderer, attributes)

Allows the handler to perform any initialisation code on the renderer. This method is called after the renderer is bound to the view for the first time. Implementing this method is optional.

Parameters:
Name Type Description
renderer module:ct-element/Renderer

The renderer that is being initialised

attributes object

Any configuration parameters for this handler.

Inherited From: