nylas-custom-event-slug

Overview

The nylas-custom-event-slug component is a UI component that allows users to add a custom URL slug for their event link.

Version1.1.0
Install (React)npm install @nylas/react
Import (React)import { NylasCustomEventSlug } from '@nylas/react';

Properties

PropertyAttributeDescriptionTypeDefault
defaultUrlSlugdefault-url-slugThe default custom event slugstring | undefinedundefined
isOpenis-openIs the custom event slug card expandedbooleantrue
namenameThe name of the componentstring'custom-event-slug'
requiresSlugrequires-slugIndicates if a slug is required for the configuration. When set to true, the user must enter a slug when creating or editing a configuration. The slug is used for hosted pages that are public.booleanfalse
selectedConfigurationThe selected configConfiguration | undefinedundefined
slugErrorMessageslug-error-messageSlug error messagestring''

Events

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

Shadow Parts

PartDescription
"nces"The nylas-custom-event-slug container
"nces__body"The body of the event communication section
"nces__drawer-toggle--container"The card’s drawer toggle container
"nces__header"The header of the event communication section
"nces__input-textfield"The custom slug input textfield

Built with StencilJS