Skip to content

NylasSchedulerEditor component

The NylasSchedulerEditor component is a form that allows users to configure the settings for the Nylas Scheduler.

NameadditionalParticipants
DescriptionUsed to populate the additional participants and their availability in the Scheduler Editor.
TypeAdditionalParticipant[]
NameconferenceProviders
DescriptionUsed to populate the conference provider options in the Editor. The key is the provider name (zoom) and the value is the grant ID. We currently support same provider (google, microsoft) for all participants and zoom for cross-provider conferencing.
TypeRecord<string, string>
NameconfigurationId
DescriptionThe Configuration ID to use for the Scheduler Editor. If provided, the Scheduler Editor will try and fetch the Configuration with the provided ID. If found, it automatically loads the Editor with the Configuration settings for editing.
Typestring
NamedefaultAuthArgs
DescriptionThe default authentication arguments to use when authenticating a user.
TypeAuthArgs[]
NamedefaultLanguage
DescriptionSet a default language for the Nylas Scheduling Page.
TypeLANGUAGE_CODE
NamedefaultSchedulerConfigState
DescriptionThe default Scheduler config store state. Used to set the initial state of the Scheduler config store. This state can be used to pass defaults to newly created Configurations.
TypePartial<NylasSchedulerConfigStoreState>
NameenableEventTypes
DescriptionControls which event types are enabled in the Scheduler. You can disable specific event types by setting them to false. At least one event type must remain enabled at all times. If only one event type is enabled, the event type selection screen will be skipped.
TypeEnableEventTypes
Default{ one_on_one: true, collective: true, max_fairness: true, max_availability: true, group: true }
NameenableUserFeedback
DescriptionIndicates if the user feedback feature is enabled. When enabled, the user feedback feature will be available in the edit mode.
Typeboolean
Defaulttrue
NameeventOverrides
DescriptionProvides a way to override the default event handlers.
TypeSchedulerEditorEventOverride
Default{}
NameexperimentalFeatures
DescriptionOpts in to experimental features (for example, { 'group_events': true }).
TypeRecord<EXPERIMENTAL_FEATURES, boolean>
NamehideEditorTabs
DescriptionHides tabs in the Editor. Available tabs are: eventInfo, availability, participants, bookingOptions, bookingForm.
TypeTab[]
Default[]
Namelocalization
DescriptionAllows you to override the default localization strings for each language. Nylas Scheduling Pages currently support the following language codes: en, es, fr, de, sv, zh, ja, nl.
TypePartial<Record<LANGUAGE_CODE, Locale>>
Namemode
DescriptionUsed to set the mode for the Scheduler Config. The mode can be app or composable.
Typeapp | composable
Defaultapp
NamenylasApiRequest
DescriptionThe Nylas API Request instance. Used to make requests to the Nylas API.
TypeNylasApiRequest
NamenylasBranding
DescriptionAllows you to show/hide the option to manage Nylas branding in the email template. When enabled, the option to show/hide Nylas branding will be shown in the email template.
Typeboolean
Defaulttrue
NamenylasSessionsConfig
DescriptionUsed to configure the Nylas Sessions instance.
TypeConfig
NamerequiresSlug
DescriptionIndicates if a slug is required for the Configuration. When set to true, the user must enter a slug when creating or editing a Configuration. If using Nylas-hosted Scheduling Pages, the schedulerPreviewLink prop can be set to redirect to a public Configuration as follows: https://book.nylas.com/us/<NYLAS_CLIENT_ID>/{slug}. us denotes the region. Replace it with the appropriate region of your application. Replace <NYLAS_CLIENT_ID> with your Nylas application’s client ID. The {slug} placeholder is replaced with the appropriate slug when the scheduler preview button is clicked. Note: Nylas-hosted Scheduling Pages are only available for public Configurations.
Typeboolean
defaultfalse
NameschedulerPreviewLink
DescriptionThe Scheduler preview link used when the user clicks the preview button. If requiresSlug is true, you can use the placeholder {slug} to insert the slug in the link for Nylas-hosted Scheduling Pages. Additionally, you can use the placeholder {config.id} to insert the Configuration ID anywhere in the link. For example: https://book.nylas.com/us/<NYLAS_CLIENT_ID>/{config.id}. us denotes the region. Replace it with the appropriate region of your application. Replace <NYLAS_CLIENT_ID> with your Nylas app client ID. Note: Nylas-hosted Scheduling Pages are only available for public Configurations.
Typestring
default' '
SlotDescription
custom-page-style-inputsUsed in app mode to pass a custom page style form to the nylas-page-styling component.
login-requiredUsed to display a message when the user is not logged in.
EventDescription
initFired when the provider is initialized. By default, this event handles determining if the user is logged in or not. In addition, it fetches the provided Configuration if a valid Configuration ID is provided.
loggedInFired when the the isAuthenticated state changes to true.
loggedOutFired when the the isAuthenticated state changes to false.
schedulerConfigCloseClickedFired when the close button on Scheduler Config is clicked.
PartDescription
nse__close-buttonThe close button of the Scheduler Editor. Use this part to hide the close button.
nse__contentThe content of the Scheduler Editor. Use this part to adjust the height of the Editor.
nse__headerThe header of the Scheduler Editor.
nse__language
nse__list-configurationsThe list of Configurations. Use this part to adjust the height of the list.
nse__login-requiredThe login required component.
nse__login-required-cardThe card of the login required component.
nse__login-required-disclaimer-textThe icon of the login required component.
nse__login-required-google-buttonThe Google button of the login required component.
nse__login-required-microsoft-buttonThe Microsoft button of the login required component.
nse__login-required-other-provider-buttonThe other provider button of the login required component.
nse__login-required-textThe text of the login required component.
nse__titleThe title of the Scheduler Editor.