@aappddeevv/dynamics-client-ui
Version:
## What is it? A library to help you create great dynamics applications.
23 lines • 837 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
/**
* Global event bus parent var. This module should only be loaded once
* for a Dynamics form typically as part of loading form
* scripts. The eventbus can be set on the global window
* using your bundler e.g. webpack with libraryTarget="var".
*/
const EventBus_1 = require("../Dynamics/EventBus");
/** Main instance for a form. */
exports.eventbus = new EventBus_1.default();
/**
* Arrange to have this called after the script is loaded.
* Place the form "global" instance into your designed location
* and coordinate with your other form components
* to find it at the designated location.
*/
function onLoad(ctx) {
// @ts-ignore
window.parent.eventbus = exports.eventbus;
}
exports.onLoad = onLoad;
//# sourceMappingURL=EventBus.js.map