nylas-customize-booking-settings

Overview

The nylas-customize-booking-settings component is a UI component that displays the booking calendar picker.

Version1.3.3
Install (React)npm install @nylas/react
Import (React)import { NylasCustomizeBookingSettings } from '@nylas/react';
Import (CDN)<script type="module"> import { defineCustomElement } from "https://cdn.jsdelivr.net/npm/@nylas/web-elements@latest/dist/cdn/nylas-customize-booking-settings/nylas-customize-booking-settings.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
defaultHideAdditionalGuestsThe default additional guests hidden setting as set in the configuration.booleanthis.selectedConfiguration?.scheduler?.hide_additional_guests ?? false
defaultHideCancellationOptionsThe default hide cancellation options setting as set in the configuration.booleanthis.selectedConfiguration?.scheduler?.hide_cancellation_options ?? false
defaultHideReschedulingOptionsThe default hide rescheduling options setting as set in the configuration.booleanthis.selectedConfiguration?.scheduler?.hide_rescheduling_options ?? false
nameThe name of the calendar picker.string'customize-booking-settings'
selectedConfigurationThe selected configConfiguration | undefinedundefined

Events

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

Shadow Parts

PartDescription
","
"ncbs"The booking calendar picker container
"ncbs__additional_guests"The additional guests setting
"ncbs__cancellation_options"The cancellation options setting
"ncbs__header"The header of the booking calendar picker
"ncbs__rescheduling_options"The rescheduling options setting
"ncbs__settings"The settings container
"ncbs__settings-div"The div inside the settings container that contains the checkbox and tooltip for each setting

Built with StencilJS