- Overview
- Introduction to Cal.com Atoms
- Setup
- Apple calendar connect
- Availability settings
- Booker Embed
- Booker
- Bookings hooks
- Cal OAuth Provider
- Cal Provider
- Calendar settings
- Calendar view
- Calendars hooks
- Conferencing Apps
- Create schedule
- Event Type
- Event types hooks
- FAQ
- Google calendar connect
- List Event Types
- List schedules
- Onboarding Embed
- Outlook calendar connect
- Payment form
- Quickstart
- Stripe Connect
- Troubleshooter
- User / Teams hooks
Atoms guides
Platform
- Bookings hooks
- Calendars hooks
- Event types hooks
- FAQ
- Introduction
- Quickstart
- User / Teams hooks
- Apple calendar connect
- Availability settings
- Booker Embed
- Booker
- Cal OAuth Provider
- Cal Provider
- Calendar settings
- Calendar view
- Conferencing Apps
- Create schedule
- Event Type
- Google calendar connect
- List Event Types
- List schedules
- Outlook calendar connect
- Payment form
- Stripe Connect
- Troubleshooter
- Managing booking fields
- Booking redirects
- Custom booking flow
- Custom slot selection flow
- Global event types
- Managed organizations
- Custom toasts
- Configuring your team
Custom toasts
Archived Cal.com Atoms documentation for Custom toasts. These deprecated SDK components are no longer maintained.
It is possible to disable default toasts for the AvailabilitySettings and EventTypeSettings atoms to then use hooks => callbacks
and listen for updates to then render your own toasts.
If we use the AvailabilitySettings atom, make changes and press "Save" a confirmation appears:
We can disable them using disableToasts prop:
<AvailabilitySettings
disableToasts={true}
/>Now when changes happen and Save is clicked the toast will not appear.
You can then create functions and pass them to hooks:
<AvailabilitySettings
disableToasts={true}
onUpdateSuccess={updateSuccessHandler}
onUpdateError={updateErrorHandler}
onDeleteSuccess={deleteSucessHandler}
onDeleteError={deleteErrorHandler}
/>in case of success response is passed to your functions and in case of error and error.
Last updated