Function

sendEvent (obj, eventName, params) Boolean public

Module: @ember/object
import { sendEvent } from '@ember/object/events';
obj
eventName
String
params
Array
Optional parameters for each listener.
returns
Boolean
if the event was delivered to one or more actions

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/3.25/functions/@ember%2Fobject%2Fevents/sendEvent