nylas-booking-calendar-picker
Overview
The nylas-booking-calendar-picker
component is a UI component that displays the booking calendar picker.
Version | 1.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
Property | Attribute | Description | Type | Default |
---|---|---|---|---|
hideHeader | The prop to hide the header. | boolean | false |
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 |
---|---|---|---|---|
calendars | The calendars to choose from. | Calendar[] | undefined | undefined | |
currentUser | The current logged in user. | undefined | { id: string; email: string; name?: string | undefined; provider?: string | undefined; } | undefined | |
currentUserCalendars | The list of user’s calendars. | Calendar[] | undefined | undefined | |
defaultBookingCalendar | The default selected calendar. | string | '' | |
name | The name of the calendar picker. | string | 'booking-calendar' |
Events
Event | Description | Type |
---|---|---|
valueChanged | This 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
Part | Description |
---|---|
"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