nylas-participants-custom-availability

Overview

The nylas-participants-custom-availability component is a form input for setting custom availability for participants.

Version1.3.3
Install (React)npm install @nylas/react
Import (React)import { NylasParticipantsCustomAvailability } from '@nylas/react';
Import (CDN)<script type="module"> import { defineCustomElement } from "https://cdn.jsdelivr.net/npm/@nylas/web-elements@latest/dist/cdn/nylas-participants-custom-availability/nylas-participants-custom-availability.es.js"; defineCustomElement(); </script>

Example


Properties

PropertyAttributeDescriptionTypeDefault
selectedLanguageThe 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 | undefinedundefined

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.
PropertyAttributeDescriptionTypeDefault
nameThe name of the participants custom availability.string'participant-custom-availability'
participantsThe participants selected in the add participants section.Participant[]`this.selectedConfiguration?.participants
selectedConfigurationThe selected configConfiguration | undefinedundefined

Events

EventDescriptionType
valueChangedThis event is fired when the participants custom availability changes.CustomEvent<{ value: string; name: string; }>

Shadow Parts

PartDescription
"npca"The participants custom availability container
"npca__content"The content of the participants custom availability
"npca__header"The header of the participants custom availability
"npca__participant-container"The participant container
"npca__participant-title"The title of the participant
"npca__participant-toggle--container"The toggle container for the participant
"npca__toggle-label"The label of the toggle
"npca_toggle-input"The input of the toggle
"npca_toggle-slider"The slider of the toggle

Built with StencilJS