__AddEvent
Adds an Event Listener to the Element object.
Key | Description |
---|---|
element | Any Element object. |
type | A case-sensitive string representing the type of the event to listen for. |
name | A case-sensitive string representing the name of the event to listen for. |
listener | The listener can be a case-sensitive string, or it can be null or undefined. |
parentComponentUniqueID
, listener
, and event
to the background thread.Due to limitations of the Lynx SDK, currently, only one listener can be added for the same type and name. Adding a listener with the same type and name again will overwrite the previously added listener.
No return value.
The frontend framework can generate render directives in the following way.