-
Notifications
You must be signed in to change notification settings - Fork 26
MobileCRM.Bridge.raiseGlobalEvent
rescocrm edited this page May 15, 2023
·
8 revisions
[v9.0] Raises the global event which can have listeners bound by other iFrames.
Argument | Type | Description |
---|---|---|
eventName | String | Global event name. |
args | Object | Any object that has to be passed to all event listeners. This object is stringified JSON and passed to another iFrame listening on the global event. |
This example demonstrates how to raise a custom global event. Other iFrame can register the callback which will be then called with specified parameters. See onGlobalEvent for example of registering such an event.
MobileCRM.bridge.raiseGlobalEvent("MyCustomEvent", {
testTitle: "My Title",
testData: { aaa: 1, bbb: 2 },
testDirectVal: 666
});