nylas-booking-confirmation-type
Overview
The nylas-booking-confirmation-type
component is a UI component that allows the user to choose a custom redirect URL after a booking is confirmed.
Version | 1.1.4 |
Install (React) | npm install @nylas/react |
Import (React) | import { NylasBookingConfirmationType } from '@nylas/react'; |
Import (CDN) | <script type="module">
import { defineCustomElement } from "https://cdn.jsdelivr.net/npm/@nylas/web-elements@latest/dist/cdn/nylas-booking-confirmation-type/nylas-booking-confirmation-type.es.js";
defineCustomElement();
</script> |
Example
Properties
Standalone Props
ⓘ NOTE: The following props are automatically configured when used within nylas-scheduler-editor. Set these props manually only if you’re using the component independently.
Property | Attribute | Description | Type | Default |
---|---|---|---|---|
bookingType | The booking type. | string | 'booking' | |
name | The name of the confirmation redirect link. | string | 'confirmation-type' | |
selectedConfiguration | The selected config | Configuration | undefined | undefined | |
showComponent | Show or hide the confirmation type. This prop is automatically determined based on the value of selectedConfiguration in the config, making it unnecessary to set this prop manually. | boolean | this.selectedConfiguration?.event_booking?.booking_type !== 'custom-confirmation' |
Events
Event | Description | Type |
---|---|---|
valueChanged | This event is fired when the selected bookingType changes. | CustomEvent<{ value: string; name: string; valueChanged?: ((event: CustomEvent<{ value: string; name: string; }>) => void) | undefined; }> |
Shadow Parts
Part | Description |
---|---|
"nbct" | The custom booking flow container |
"nbct__dropdown" | The dropdown container |
"nbct__dropdown-button" | The dropdown button |
"nbct__dropdown-content" | The dropdown content |
"nbct__header" | The header of the custom booking flow |
Built with StencilJS