nylas-timeslot-interval

Overview

The nylas-timeslot-interval component allows users to set their time slot interval preferences. This component provides an option to set both interval_minutes and round_to in the configuration.

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

Properties

PropertyAttributeDescriptionTypeDefault
defaultIntervalMinutesdefault-interval-minutes<span style=“color:red”>[DEPRECATED]</span> The default interval minutes.<br/><br/>numberthis.selectedConfiguration?.availability?.interval_minutes ?? this.eventDurationMinutes ?? 10
defaultRoundTodefault-round-to<span style=“color:red”>[DEPRECATED]</span> The round to option in minutes as set in the configuration.<br/><br/>number | undefinedthis.selectedConfiguration?.availability?.round_to ?? undefined
eventDurationMinutesevent-duration-minutesThe event duration in minutes.number | undefinedthis.selectedConfiguration?.availability?.duration_minutes
namenameThe name of the calendar picker.string'timeslot-picker'
selectedConfigurationThe selected configConfiguration | undefinedundefined

Events

EventDescriptionType
valueChangedThis event is fired when the selected booking calendar changes.CustomEvent<{ value: string; name: string; }>

Shadow Parts

PartDescription
"nti"The timeslot interval container
"nti__dropdown"The dropdown container
"nti__dropdown-button"The dropdown button
"nti__dropdown-content"The dropdown content
"nti__header"The header of the timeslot interval picker
"nti__input-label"The input label of the timeslot interval picker

Built with StencilJS