nylas-event-duration

Overview

The nylas-event-duration component is a form input for the duration of an event.

Version1.3.3
Install (React)npm install @nylas/react
Import (React)import { NylasEventDuration } from '@nylas/react';
Import (CDN)<script type="module"> import { defineCustomElement } from "https://cdn.jsdelivr.net/npm/@nylas/web-elements@latest/dist/cdn/nylas-event-duration/nylas-event-duration.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
eventDurationMinutesThe event duration in minutes as set in the configuration.number | undefinedundefined
nameThe name of the event duration. Default is ‘duration’.string'duration'
selectedConfigurationThe selected configConfiguration | undefinedundefined

Events

EventDescriptionType
valueChangedEvent emitted when the event duration changes.CustomEvent<{ value: string; name: string; }>

Shadow Parts

PartDescription
"ned"The event duration container
"ned__dropdown"The dropdown container for the duration increment
"ned__dropdown-button"The dropdown button for the duration increment
"ned__dropdown-content"The dropdown content for the duration increment
"ned__input_dropdown"The input dropdown container for the duration minutes
"ned__input_dropdown-content"The dropdown content for the input duration minutes
"ned__input_dropdown-input"The input for the duration minutes

Built with StencilJS