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.1.4
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

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