nylas-cancellation-policy
Overview
The nylas-cancellation-policy
component is a form input for the cancellation policy message of an event.
Version | 1.1.4 |
Install (React) | npm install @nylas/react |
Import (React) | import { NylasCancellationPolicy } from '@nylas/react'; |
Import (CDN) | <script type="module">
import { defineCustomElement } from "https://cdn.jsdelivr.net/npm/@nylas/web-elements@latest/dist/cdn/nylas-cancellation-policy/nylas-cancellation-policy.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 |
---|---|---|---|---|
cancellationPolicy | The cancellation policy stored in the configuration | string | undefined | undefined | |
name | The name of the cancellation policy input. | string | 'cancelation-policy' | |
selectedConfiguration | The selected config | Configuration | undefined | undefined |
Events
Event | Description | Type |
---|---|---|
valueChanged | Event emitted when the cancellation policy message changes. | CustomEvent<{ value: string; name: string; }> |
Shadow Parts
Part | Description |
---|---|
"ncpolicy" | The cancellation policy container |
"ncpolicy__textarea" | The cancellation policy textarea |
Built with StencilJS