nylas-calendar-picker

Overview

The nylas-calendar-picker component is a form input for selecting calendars to check availability.

Version1.1.0-canary.14
Install (React)npm install @nylas/react
Import (React)import { NylasCalendarPicker } from '@nylas/react';

Properties

PropertyAttributeDescriptionTypeDefault
calendarsThe calendars to choose from.Calendar[] | undefinedundefined
currentUserThe logged in user.undefined | { id: string; email: string; name?: string | undefined; }undefined
defaultSelectedCalendarsThe default selected calendars.string[][]
namenameThe name of the calendar picker.string'calendar'

Events

EventDescriptionType
valueChangedThis event is fired when the selected calendars change.CustomEvent<{ value: string[]; name: string; valueChangedHandler?: ((event: CustomEvent<{ value: string[]; name: string; }>) => void) | undefined; }>

Shadow Parts

PartDescription
"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