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.0 |
Install (React) | npm install @nylas/react |
Import (React) | import { NylasBookingConfirmationType } from '@nylas/react'; |
Properties
Property | Attribute | Description | Type | Default |
---|---|---|---|---|
bookingType | booking-type | The booking type. | string | 'booking' |
name | name | The name of the confirmation redirect link. | string | 'confirmation-type' |
selectedConfiguration | — | The selected config | Configuration | undefined | undefined |
showComponent | show-component | <span style=“color:red”>[DEPRECATED]</span> 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. The selectedConfiguration alone handles the functionality. This prop is deprecated and will be removed in the next version. Setting this prop will have no effect.<br/><br/> | 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