nylas-booking-calendar-picker
Overview
The nylas-booking-calendar-picker
component is a UI component that displays the booking calendar picker.
Version | 1.1.0-canary.14 |
Install (React) | npm install @nylas/react |
Import (React) | import { NylasBookingCalendarPicker } from '@nylas/react'; |
Properties
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; } | undefined |
defaultBookingCalendar | default-booking-calendar | The default selected calendar. | string | '' |
name | 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