Function

sendEvent (obj, eventName, params, actions, meta) public

Module: @ember/object
import { sendEvent } from '@ember/object/events';
obj
eventName
String
params
Array
Optional parameters for each listener.
actions
Array
Optional array of actions (listeners).
meta
Meta
Optional meta to lookup listeners
returns
true

Send an event. The execution of suspended listeners is skipped, and once listeners are removed. A listener without a target is executed on the passed object. If an array of actions is not passed, the actions stored on the passed object are invoked.

© 2020 Yehuda Katz, Tom Dale and Ember.js contributors
Licensed under the MIT License.
https://api.emberjs.com/ember/2.18/functions/@ember%2Fobject%2Fevents/sendEvent