Constructor
# new RezClickTransformer()
Transformer for click events on any element with a data-event
attribute in cards.
Adds click handlers to elements within active or front-facing cards that
have a data-event attribute and are not marked as inactive. When clicked,
the event is routed through the receiver's event handling system.
Extends
Members
Methods
# addEventListener(elem)
Adds the event listener to an element.
The listener prevents default behavior and routes the event through the receiver's handleBrowserEvent and dispatchResponse methods.
Parameters:
| Name | Type | Description |
|---|---|---|
elem |
Element
|
The DOM element |
- Inherited From:
# transformElement(elem, view)
Transforms an element by adding an event listener.
Parameters:
| Name | Type | Description |
|---|---|---|
elem |
Element
|
The DOM element |
view |
RezView
|
The view being transformed |
- Inherited From:
# transformElements(view)
Transforms all matching elements in the document.
Parameters:
| Name | Type | Description |
|---|---|---|
view |
RezView
|
The view being transformed |
- Inherited From:
# static constructor(receiver)
Creates a new RezClickTransformer.
Parameters:
| Name | Type | Description |
|---|---|---|
receiver |
Object
|
Object that handles click events |