nylas-participants-custom-availability
Overview
The nylas-participants-custom-availability
component is a form input for setting custom availability for participants.
Version | 1.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
Property | Attribute | Description | Type | Default |
---|---|---|---|---|
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 |
---|---|---|---|---|
name | The name of the participants custom availability. | string | 'participant-custom-availability' | |
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 |
---|---|
"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