Embed events
Actions/Events
You can listen to an event that occurs in embed as follows. We use the term Action and Event interchangeably. Though the technically better term is event
, it can be confused with booking events or event-types.
Following are the list of supported events that embed fires.
eventTypeSelected
When user chooses an event-type from the listing.
eventType:object // Event Type that has been selected"
bookingSuccessful
When the booking is successfully done. It might not be confirmed.
confirmed: boolean; //Whether confirmation from organizer is pending or not eventType: "Object for Event Type that has been booked"; date: string; // Date of Event duration: number; //Duration of booked Event organizer: object //Organizer details like name, timezone, email
linkReady
Tells that the link is ready to be shown now.
None
linkFailed
Fired if link fails to load
code: number; // Error Code msg: string; //Human Readable msg data: object // More details to debug the error
__iframeReady
It is fired when the embedded iframe is ready to communicate with parent snippet. This is mostly for internal use by Embed Snippet
None
__windowLoadComplete
Tells that window load for iframe is complete
None
__dimensionChanged
Tells that dimensions of the content inside the iframe changed.
iframeWidth:number, iframeHeight:number
Events that start with __ are internal.
To get more details on how Embed actually works, you can refer to this Embed Flowchart
Last updated