Namespace Archetype.methodBuilders.eventListeners
Archetype.methodBuilders.eventListeners
Automatic event Listener for your component. Just add a "on" prefix to a method for it to
automatically listen for the event named after this prefix.
The listener will get the event in first parameter, and can get the data posted by the event
with (say we will use the variable "event" as first parameter) event.event_data.data
Defined in: componentManager.js.
| Method Attributes | Method Name and Description |
|---|---|
| <static> |
Archetype.methodBuilders.eventListeners.build(component, methodName)
Acts on the Component definition method methodName (that matches "this.regexp")
|
Method Detail
<static>
Archetype.methodBuilders.eventListeners.build(component, methodName)
Acts on the Component definition method methodName (that matches "this.regexp")
- Parameters:
- {ComponentDefinition} component
- {Function} methodName