new module:ct-element /handler /Click Handler()
Notifies all registered module:ct-element/RendererEventListener
s when
the control is clicked by the user.
ClickHandler
is typically used in the XML Renderer Framework.
Raises "click" renderer event when the element receives the "click" event.
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 |
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 |
The renderer that is being initialised |
attributes |
object | Any configuration parameters for this handler. |
- Inherited From: