new module:ct-element /handler /Image Hover Handler()
Applies the specified numeric value as a negative "top" when the control is hovered over by the user. The events that will trigger the setting of the value are "mouseover" which uses the control attribute value "top-mouseover" and "mouseout" which uses the attribute value "top-mouseout".
Extends:
- Deprecated:
-
module:ct-control/basic/ImageControl
supports adding a class attribute in the template, which allows hover styling via CSS, negating the need for this handler.
-
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: