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.

Version1.3.3
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

PropertyAttributeDescriptionTypeDefault
selectedLanguageThe selected language.LANGUAGE_CODE.de | LANGUAGE_CODE.en | LANGUAGE_CODE.es | LANGUAGE_CODE.fr | LANGUAGE_CODE.ja | LANGUAGE_CODE.nl | LANGUAGE_CODE.sv | LANGUAGE_CODE.zh | undefinedundefined

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.
PropertyAttributeDescriptionTypeDefault
bookingTypeThe booking type.string'booking'
nameThe name of the confirmation redirect link.string'confirmation-type'
selectedConfigurationThe selected configConfiguration | undefinedundefined
showComponentShow 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.booleanthis.selectedConfiguration?.event_booking?.booking_type !== 'custom-confirmation'

Events

EventDescriptionType
valueChangedThis event is fired when the selected bookingType changes.CustomEvent<{ value: string; name: string; valueChanged?: ((event: CustomEvent<{ value: string; name: string; }>) => void) | undefined; }>

Shadow Parts

PartDescription
"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