nylas-scheduling-method

Overview

The nylas-scheduling-method component is a UI component that displays the booking calendar picker.

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

Example


Properties

PropertyAttributeDescriptionTypeDefault
readOnlyThis prop is used to display the component in a disabled state / read-only mode.booleanfalse

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 booking type picker.string'availability-method'
participantOptionsThe participant options passed in the additionalParticipants prop from the nylas-scheduler-editor component.AdditionalParticipant[] | undefinedundefined
selectedConfigurationThe selected configConfiguration | undefinedundefined

Events

EventDescriptionType
valueChangedThis event is fired when the selected booking calendar changes.CustomEvent<{ value: string; name: string; valueChanged?: ((event: CustomEvent<{ value: string; name: string; }>) => void) | undefined; }>

Shadow Parts

PartDescription
"nsm"The booking calendar picker container
"nsm__dropdown"The dropdown container
"nsm__dropdown-button"The dropdown button
"nsm__dropdown-content"The dropdown content
"nsm__header"The header of the booking calendar picker
"nsm__input-label"The input label of the booking calendar picker

Built with StencilJS