nylas-connected-calendars
Overview
The nylas-connected-calendars
component is a form input for selecting calendars to check availability for participants.
Version | 1.3.3 |
Install (React) | npm install @nylas/react |
Import (React) | import { NylasConnectedCalendars } from '@nylas/react'; |
Import (CDN) | <script type="module">
import { defineCustomElement } from "https://cdn.jsdelivr.net/npm/@nylas/web-elements@latest/dist/cdn/nylas-connected-calendars/nylas-connected-calendars.es.js";
defineCustomElement();
</script> |
Example
Properties
Property | Attribute | Description | Type | Default |
---|---|---|---|---|
name | The name of the participants custom availability. | string | 'connected-calendars' | |
selectedLanguage | The selected language. | LANGUAGE_CODE.de | LANGUAGE_CODE.en | LANGUAGE_CODE.es | LANGUAGE_CODE.fr | LANGUAGE_CODE.ja | LANGUAGE_CODE.nl | LANGUAGE_CODE.sv | LANGUAGE_CODE.zh | undefined | undefined |
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 for the organizer / logged in user. | Calendar[] | undefined | undefined | |
participantOptions | The participant options passed in the additionalParticipants prop from the nylas-scheduler-editor component. | AdditionalParticipant[] | undefined | undefined | |
participants | The participants selected in the add participants section. | Participant[] | `this.selectedConfiguration?.participants | |
selectedConfiguration | The selected config | Configuration | undefined | undefined |
Events
Event | Description | Type |
---|---|---|
valueChanged | This event is fired when the participants custom availability changes. | CustomEvent<{ value: string; name: string; }> |
Shadow Parts
Part | Description |
---|---|
"nccals" | The connected calendars host. |
"nccals__container" | The container. |
"nccals__content" | The content. |
"nccals__header" | The header. |
"nccals__title" | The title. |
"nccals__toggle-container" | The toggle container. |
Built with StencilJS