nylas-calendar-picker
Overview
The nylas-calendar-picker
component is a form input for selecting calendars to check availability.
Version | 1.1.0-canary.14 |
Install (React) | npm install @nylas/react |
Import (React) | import { NylasCalendarPicker } from '@nylas/react'; |
Properties
Property | Attribute | Description | Type | Default |
---|---|---|---|---|
calendars | — | The calendars to choose from. | Calendar[] | undefined | undefined |
currentUser | — | The logged in user. | undefined | { id: string; email: string; name?: string | undefined; } | undefined |
defaultSelectedCalendars | — | The default selected calendars. | string[] | [] |
name | name | The name of the calendar picker. | string | 'calendar' |
Events
Event | Description | Type |
---|---|---|
valueChanged | This event is fired when the selected calendars change. | CustomEvent<{ value: string[]; name: string; valueChangedHandler?: ((event: CustomEvent<{ value: string[]; name: string; }>) => void) | undefined; }> |
Shadow Parts
Part | Description |
---|---|
"ncp" | The calendar picker container |
"ncp__dropdown" | The dropdown container |
"ncp__dropdown-button" | The dropdown button |
"ncp__dropdown-content" | The dropdown content |
"ncp__header" | The header of the calendar picker |
Built with StencilJS