addHandler()

Deprecated. Use addEventHandler() instead.

Signature

addHandler(String eventName, Object valueProvider, Object actionExpression, Boolean insert, String phase, Boolean includeFacets)

Parameters

eventName

Type: String

The name of the event to handle. For a component event, set this argument to match the name attribute of the aura:registerEvent tag. For an application event, set this argument to match the event descriptor, namespace:eventName.

valueProvider: Type: Object. The value provider to use for resolving the actionExpression.

actionExpression: Type: Object. The expression to use for resolving the handler action against the given valueProvider.

insert: Type: Boolean. If true, put the handler at the beginning instead of the end of the handler array.

phase: Type: String. Optional. The event bubbling phase for which to add the handler. The default value is "bubble".

includeFacets: Type: Boolean. If true, attempts to catch events generated by components transcluded by facets; for example v.body.