nylas-cancellation-policy

Overview

The nylas-cancellation-policy component is a form input for the cancellation policy message of an event.

Version1.3.3
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

PropertyAttributeDescriptionTypeDefault
selectedLanguageThe 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 | undefinedundefined

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.
PropertyAttributeDescriptionTypeDefault
cancellationPolicyThe cancellation policy stored in the configurationstring | undefinedundefined
nameThe name of the cancellation policy input.string'cancelation-policy'
selectedConfigurationThe selected configConfiguration | undefinedundefined

Events

EventDescriptionType
valueChangedEvent emitted when the cancellation policy message changes.CustomEvent<{ value: string; name: string; }>

Shadow Parts

PartDescription
"ncpolicy"The cancellation policy container
"ncpolicy__textarea"The cancellation policy textarea

Built with StencilJS