IEventWorkflowController

Extends IEventController.

Interface for an event controller that can affect event propagation through the tree.

Constructor | Methods

Constructor

IEventWorkflowController()

Methods

Name

Description

onAfterEventFiring(events, type[, event])

Function that is called after an event has been handled by the event manager. This method is optional.

onBeforeEventFiring(events, type[, event])

Function that is called before an event is handled by the event manager. This method is optional.

onStartListening(events, type)

Called on the first subscription to the specified event type using the specified event manager. This method is optional.

Inherited from IEventController.

onStopListening(events, type)

Called when a particular event type stops listening on the specified event manager (the last subscription is deleted). This method is optional.

Inherited from IEventController.

Methods details

onAfterEventFiring

{} onAfterEventFiring(events, type[, event])

Function that is called after an event has been handled by the event manager. This method is optional.

Parameters:

Parameter

Default value

Description

events*

—

Type: IEventManager

Event manager.

type*

—

Type: String

Type of event.

event

—

Type: IEvent

Event.

* Mandatory parameter/option.

onBeforeEventFiring

{} onBeforeEventFiring(events, type[, event])

Function that is called before an event is handled by the event manager. This method is optional.

Parameters:

Parameter

Default value

Description

events*

—

Type: IEventManager

Event manager.

type*

—

Type: String

Type of event.

event

—

Type: IEvent

Event.

* Mandatory parameter/option.