nylas-event-capacity

Overview

The nylas-event-capacity component is a UI component that allows users to set the event capacity for the scheduler configuration.

Version1.3.6
Install (React)npm install @nylas/react
Import (React)import { NylasEventCapacity } from '@nylas/react';
Import (CDN)You do not need to individually import the component, just import the parent component either nylas-scheduling or nylas-scheduler-editor.

Properties

PropertyAttributeDescriptionTypeDefault
selectedLanguageThe selected language.LANGUAGE_CODE.de | LANGUAGE_CODE.en | LANGUAGE_CODE.es | LANGUAGE_CODE.fr | LANGUAGE_CODE.ja | LANGUAGE_CODE.ko | 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
capacityThe default event capacitynumber | undefinedundefined
nameThe name of the componentstring'event-capacity'

Events

EventDescriptionType
valueChangedThis event is fired when the event capacity value changesCustomEvent<{ value: string; name: string; valueChanged?: ((event: CustomEvent<{ value: string; name: string; }>) => void) | undefined; }>

Shadow Parts

PartDescription
"necapacity"The nylas-event-capacity container
"necapacity__body"The body of the event capacity section
"necapacity__drawer-toggle--container"The card’s drawer toggle container
"necapacity__header"The header of the event capacity section
"necapacity__input-numberfield"The event capacity input numberfield

Built with StencilJS