GenericEvent

GenericEvent

Generic Event is Useful to dispatch Custom Event with EventName, Params, Event Type

It support loosely connected View - View, View - Component Communication with One to One , One to Many pattern

Constructor

new GenericEvent(_type, _eventName, _params, _bubbles, _cancelable)

Source:
Example
//create Generic Event
       let helloEvent = new GenericEvent(EventUtils.CHANGE, "HelloChangeEvent", "myParams");

       // Dispatch  Event on Application Event Channel
       EventBroadCaster.appEventChannel.dispatchEvent(helloEvent);
Parameters:
Name Type Description
_type string
_eventName string
_params Object
_bubbles *
_cancelable Boolean

Classes

GenericEvent

Methods

clone()

Source:
Returns:

{Object) - creates and return GenericEvent Instance