nylas-page-name

Overview

The nylas-page-name component is a UI component that allows users to add a custom page name which will appear in the top left corner of the date picker.

Version1.3.3
Install (React)npm install @nylas/react
Import (React)import { NylasPageName } from '@nylas/react';
Import (CDN)<script type="module"> import { defineCustomElement } from "https://cdn.jsdelivr.net/npm/@nylas/web-elements@latest/dist/cdn/nylas-page-name/nylas-page-name.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
isOpenIs the page name container card expandedbooleantrue
nameThe name of the componentstring'page-name'
pageNameThe default page namestring | undefinedundefined
selectedConfigurationThe selected configConfiguration | undefinedundefined
showToggleShow toggle button that allows users to expand or collapse the cardbooleantrue

Events

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

Shadow Parts

PartDescription
"nces"
"nces__body"
"nces__drawer-toggle--container"
"nces__header"
"npn"The nylas-page-name container
"npn__body"The body of the event communication section
"npn__drawer-toggle--container"The card’s drawer toggle container
"npn__header"The header of the event communication section
"npn__input-textfield"The page name input textfield

Built with StencilJS