nylas-min-booking-notice
Overview
The nylas-min-booking-notice
component is a form input for the minimum period of notice (minutes) that a guest must
provide to book an event.
Version | 1.3.3 |
Install (React) | npm install @nylas/react |
Import (React) | import { NylasMinBookingNotice } from '@nylas/react'; |
Import (CDN) | <script type="module">
import { defineCustomElement } from "https://cdn.jsdelivr.net/npm/@nylas/web-elements@latest/dist/cdn/nylas-min-booking-notice/nylas-min-booking-notice.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 |
---|---|---|---|---|
minBookingNotice | The minimum booking notice (minutes) stored in the configuration | number | undefined | undefined | |
name | The name of the min booking notice input. | string | 'min-booking-notice' | |
selectedConfiguration | The selected config | Configuration | undefined | undefined |
Events
Event | Description | Type |
---|---|---|
valueChanged | This event is fired when the value of the min booking notice changes. | CustomEvent<{ value: string; name: string; }> |
Shadow Parts
Part | Description |
---|---|
"nmbn" | The minimum booking notice container |
"nmbn__number-dropdown" | The number dropdown container |
"nmbn__number-dropdown-button" | The number dropdown button |
"nmbn__number-dropdown-content" | The number dropdown content |
"nmbn__period-dropdown" | The period dropdown container |
"nmbn__period-dropdown-button" | The period dropdown button |
"nmbn__period-dropdown-content" | The period dropdown content |
Built with StencilJS