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.3.3
Install (React)npm install @nylas/react
Import (React)import { NylasCustomEventSlug } from '@nylas/react';
Import (CDN)<script type="module"> import { defineCustomElement } from "https://cdn.jsdelivr.net/npm/@nylas/web-elements@latest/dist/cdn/nylas-custom-event-slug/nylas-custom-event-slug.es.js"; defineCustomElement(); </script>

Example


Properties

PropertyAttributeDescriptionTypeDefault
defaultUrlSlugThe default custom event slugstring | undefinedundefined
isOpenIs the custom event slug card expandedbooleantrue
nameThe name of the componentstring'custom-event-slug'
requiresSlugIndicates 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
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
slugErrorMessageSlug 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