nylas-cancel-booking-form

Overview

The nylas-cancel-booking-form component is a UI component that allows users to cancel a booking.

Version1.1.0-canary.14
Install (React)npm install @nylas/react
Import (React)import { NylasCancelBookingForm } from '@nylas/react';

Example


Properties

PropertyAttributeDescriptionTypeDefault
cancelBookingId (required)cancel-booking-idThe booking ID to cancel.stringundefined
configSettingsThe config settings.undefined | { scheduler: { available_days_in_future: number; min_cancellation_notice: number; min_booking_notice: number; cancellation_policy: string; }; organizer: { name: string; email: string; }; }undefined

Events

EventDescriptionType
cancelBookedEventErrorThis event is fired when an error occurs while cancelling the booking.CustomEvent<NylasSchedulerErrorResponse>
cancelBookingFormErrorThis event is fired when an error occurs in the booking form.CustomEvent<{ id?: string | undefined; type?: NotificationType | undefined; title?: string | undefined; code?: number | undefined; category?: string | undefined; description?: string | undefined; ttl?: number | "none" | undefined; }>
cancelBookingFormSubmittedThis event is fired when the cancel booking form is submitted.CustomEvent<{ bookingId: string; reason: string; errorHandler?: ((error: NylasSchedulerErrorResponse) => void) | undefined; }>
goBackButtonClickedThis event is fired when the Go back button is clicked on the cancel booking form.CustomEvent<void>

Shadow Parts

PartDescription
"ncec"
"ncec__button-cta"
"ncec__button-outline"
"ncec__card"
"ncec__description"
"ncec__icon"
"ncec__reason-textarea"
"ncec__title"

Built with StencilJS