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.
Version | 1.1.0 |
Install (React) | npm install @nylas/react |
Import (React) | import { NylasTimeslotInterval } from '@nylas/react'; |
Properties
Property | Attribute | Description | Type | Default |
---|---|---|---|---|
defaultIntervalMinutes | default-interval-minutes | <span style=“color:red”>[DEPRECATED]</span> The default interval minutes.<br/><br/> | number | this.selectedConfiguration?.availability?.interval_minutes ?? this.eventDurationMinutes ?? 10 |
defaultRoundTo | default-round-to | <span style=“color:red”>[DEPRECATED]</span> The round to option in minutes as set in the configuration.<br/><br/> | number | undefined | this.selectedConfiguration?.availability?.round_to ?? undefined |
eventDurationMinutes | event-duration-minutes | The event duration in minutes. | number | undefined | this.selectedConfiguration?.availability?.duration_minutes |
name | name | The name of the calendar picker. | string | 'timeslot-picker' |
selectedConfiguration | — | The selected config | Configuration | undefined | undefined |
Events
Event | Description | Type |
---|---|---|
valueChanged | This event is fired when the selected booking calendar changes. | CustomEvent<{ value: string; name: string; }> |
Shadow Parts
Part | Description |
---|---|
"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