nylas-booking-calendar-picker

Overview

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

Version1.1.4
Install (React)npm install @nylas/react
Import (React)import { NylasBookingCalendarPicker } from '@nylas/react';
Import (CDN)<script type="module"> import { defineCustomElement } from "https://cdn.jsdelivr.net/npm/@nylas/web-elements@latest/dist/cdn/nylas-booking-calendar-picker/nylas-booking-calendar-picker.es.js"; defineCustomElement(); </script>

Example


Properties

PropertyAttributeDescriptionTypeDefault
hideHeaderThe prop to hide the header.booleanfalse

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
calendarsThe calendars to choose from.Calendar[] | undefinedundefined
currentUserThe current logged in user.undefined | { id: string; email: string; name?: string | undefined; provider?: string | undefined; }undefined
currentUserCalendarsThe list of user’s calendars.Calendar[] | undefinedundefined
defaultBookingCalendarThe default selected calendar.string''
nameThe name of the calendar picker.string'booking-calendar'

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
"nbcp"The booking calendar picker container
"nbcp__dropdown"The dropdown container
"nbcp__dropdown-button"The dropdown button
"nbcp__dropdown-content"The dropdown content
"nbcp__header"The header of the booking calendar picker
"nbcp__input-label"The input label of the booking calendar picker

Built with StencilJS