CustomizationCallbacks & Events
Callbacks & Events
How the widget notifies your page about bookings, errors, and closes.
init() (and open()) accept three callbacks. What each one actually does in
the current bundle differs, so check this before you build on one:
| Callback | Status today |
|---|---|
onClose() | Works. Fires when the modal is dismissed. Modal mode only. |
onError(error) | Partial. Fires when the initial workspace load fails. In-flow failures show the widget's own error UI without calling it. |
onSuccess(data) | Does not fire. Accepted by init() but never invoked. |
Don't build post-booking logic on onSuccess yet
A redirect, confirmation email, or conversion event hung off onSuccess will
never run. If you need to react to a completed booking today, ask the platform
team for the current recommendation.