User Account Data & Events
The User Account drop-in uses the event bus to emit and listen to events for communication between drop-ins and external integrations.
Version: 3.1.0
Events reference
Section titled “Events reference”| Event | Direction | Description |
|---|---|---|
| companyContext/changed | Listens | Fired by Company Context (companyContext) when a change occurs. |
Event details
Section titled “Event details”The following sections provide detailed information about each event, including its direction, event payload, and usage examples.
companyContext/changed (listens)
Section titled “companyContext/changed (listens)”Fired by Company Context (companyContext) when a change occurs.
Event payload
Section titled “Event payload”Example
Section titled “Example”import { events } from '@dropins/tools/event-bus.js';
events.on('companyContext/changed', (payload) => { console.log('companyContext/changed event received:', payload); // Add your custom logic here});