Skip to content

nylas-cancelled-event-card

The nylas-cancelled-event-card element displays the cancelled event card.

NamecancelledEventInfo
DescriptionThe participant’s name who booked the event/is logged in.
Type{ booking_id?: string | undefined; organizer?: { email: string; name: string; is_organizer?:
boolean | undefined; } | undefined; title?: string | undefined; description?: string |
undefined; status?: string | undefined; event_id?: string | undefined; location?: string |
undefined; booking_ref?: string | undefined; }
NameselectedLanguage
DescriptionThe selected language.
TypeLANGUAGE_CODE.de | LANGUAGE_CODE.en | LANGUAGE_CODE.es | LANGUAGE_CODE.fr | LANGUAGE_CODE.ja |
LANGUAGE_CODE.ko | LANGUAGE_CODE.nl | LANGUAGE_CODE.sv | LANGUAGE_CODE.zh | undefined

The following props are automatically configured when used within NylasScheduling. Set these props manually only if you’re using the component independently.

NameconfigSettings
DescriptionThe Configuration settings for the Scheduler.
Typeundefined | { configuration_id: string; booking?: { additional_fields: Record<string, string>;
additional_guests: { email: string; name: string; }[]; booking_ref: string; booking_ref_salt:
string; guest: { email: string; name: string; }; timezone: string; email_language: string;
event_data: { location: string; when: { start_time: Date; end_time: Date; end_timezone:
string; start_timezone: string; object: string; }; }; event_organizer: { name: string; email:
string; is_organizer: boolean; }; } | undefined; scheduler: { available_days_in_future:
number; min_cancellation_notice: number; min_booking_notice: number; rescheduling_url?:
string | undefined; cancellation_url?: string | undefined; cancellation_policy?: string |
undefined; hide_additional_guests?: boolean | undefined; hide_cancellation_options?: boolean |
undefined; hide_rescheduling_options?: boolean | undefined; additional_fields?:
Record<string, AdditionalFields> | undefined; confirmation_redirect_url?: string | undefined;
organizer_confirmation_url?: string | undefined; }; organizer: { name: string; email: string;
}; slug: string; appearance: Appearance; booking_type: string; name: string; }
NamethemeConfig
DescriptionThe theme configuration.
Typeany
EventDescription
cancelledEventCardErrorFired when an error occurs.
closeCancelEventCardClickedFired when the close button is clicked on the cancelled event card.
PartDescription
ncecThe cancelled event card host.
ncec__button-outlineThe close button CTA.
ncec__cardThe cancelled event card.
ncec__descriptionThe description of the cancelled event card.
ncec__iconThe calendar icon.
ncec__titleThe title of the cancelled event card.

The nylas-cancelled-event-card element is automatically included in the main NylasScheduling component. The following code samples show how to use the element on its own.