Custom jQuery Events — Namespace your events using jQuery’s event namespacing.

PHOTO EMBED

Fri Mar 04 2022 11:10:47 GMT+0000 (UTC)

Saved by @mboljar

$(window).trigger('broadcast.greatAddon', { maxVolume: 11 });
$(window).on('broadcast.greatAddon', function(msg) {
  console.log(msg.maxVolume);
});
content_copyCOPY

https://docs.expressionengine.com/latest/development/control-panel-js/events.html