nylas-limit-future-bookings
Overview
The nylas-limit-future-bookings
component is a form input for the number of days in the future a guest is allowed to book an event.
Version | 1.1.4 |
Install (React) | npm install @nylas/react |
Import (React) | import { NylasLimitFutureBookings } from '@nylas/react'; |
Import (CDN) | <script type="module">
import { defineCustomElement } from "https://cdn.jsdelivr.net/npm/@nylas/web-elements@latest/dist/cdn/nylas-limit-future-bookings/nylas-limit-future-bookings.es.js";
defineCustomElement();
</script> |
Example
Properties
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 |
---|---|---|---|---|
availableDaysInFuture | The number of days into the future that invitees will see availability, as set in the configuration. | number | undefined | undefined | |
name | The name of the limit future bookings input. | string | 'limit-future-bookings' | |
selectedConfiguration | The selected config | Configuration | undefined | undefined |
Events
Event | Description | Type |
---|---|---|
valueChanged | Event emitted when the future booking limit changes. | CustomEvent<{ value: string; name: string; }> |
Shadow Parts
Part | Description |
---|---|
"nlfb" | The limit future bookings container |
"nlfb__number-dropdown" | The number dropdown container |
"nlfb__number-dropdown-button" | The number dropdown button |
"nlfb__number-dropdown-content" | The number dropdown content |
"nlfb__period-dropdown" | The period dropdown container |
"nlfb__period-dropdown-button" | The period dropdown button |
"nlfb__period-dropdown-content" | The period dropdown content |
Built with StencilJS