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