nylas-organizer-confirmation-card
Overview
The nylas-organizer-confirmation-card
component is a UI component that displays the booked event card.
Version | 1.3.3 |
Install (React) | npm install @nylas/react |
Import (React) | import { NylasOrganizerConfirmationCard } from '@nylas/react'; |
Import (CDN) | <script type="module">
import { defineCustomElement } from "https://cdn.jsdelivr.net/npm/@nylas/web-elements@latest/dist/cdn/nylas-organizer-confirmation-card/nylas-organizer-confirmation-card.es.js";
defineCustomElement();
</script> |
Properties
Property | Attribute | Description | Type | Default |
---|---|---|---|---|
organizerConfirmationBookingId | Booking flow type. | string | undefined | undefined | |
selectedLanguage | The selected language. | string | navigator.language |
Standalone Props
ⓘ NOTE: The following props are automatically configured when used within nylas-scheduling. Set these props manually only if you’re using the component independently.
Property | Attribute | Description | Type | Default |
---|---|---|---|---|
configSettings | The config settings for the scheduler. | any | undefined | |
isLoading | The loading state prop. Used to display loading state when fetching availability. | boolean | undefined | undefined | |
themeConfig | The theme configuration. | any | undefined |
Events
Event | Description | Type |
---|---|---|
confirmBookingButtonClicked | Reschedule button clicked event. | CustomEvent<{ bookingId: string; host: HTMLNylasOrganizerConfirmationCardElement; errorHandler?: ((error: NylasSchedulerErrorResponse) => void) | undefined; }> |
confirmBookingError | This event is fired when an error occurs while rescheduling the booking. | CustomEvent<NylasSchedulerErrorResponse> |
rejectBookingButtonClicked | Reject booking button clicked event. | CustomEvent<{ bookingId: string; host: HTMLNylasOrganizerConfirmationCardElement; }> |
Methods
resetAction() => Promise<void>
Returns
Type: Promise<void>
Shadow Parts
Part | Description |
---|---|
"nmcc" | The booked event card host. |
"nmcc__button-outline" | The cancel & reschedule button CTA. |
"nmcc__cancel-cta" | The cancel button CTA. |
"nmcc__card" | The booked event card. |
"nmcc__description" | The description of the booked event card. |
"nmcc__reschedule-cta" | The reschedule button CTA. |
"nmcc__title" | The title of the booked event card. |
"nmccc__card" |
Built with StencilJS