Skip to content
Skip to main content

nylas-date-picker

The nylas-date-picker element allows users to select a date.

NameeventDuration
DescriptionThe event duration.
Typenumber | undefined
NameisLoading
DescriptionThe loading state.
Typeboolean | undefined
NameselectedDate
DescriptionThe selected date.
TypeDate | undefined
NameselectedLanguage
DescriptionThe selected language.
TypeLANGUAGE_CODE.de | LANGUAGE_CODE.en | LANGUAGE_CODE.es | LANGUAGE_CODE.fr | LANGUAGE_CODE.ja |
LANGUAGE_CODE.ko | LANGUAGE_CODE.nl | LANGUAGE_CODE.sv | LANGUAGE_CODE.zh | undefined
NameselectedTimezone
DescriptionThe selected time zone.
Typestring
NameconfigSettings
DescriptionThe Configuration settings for the Scheduler.
Typeundefined | { configuration_id: string; booking?: { additional_fields: Record<string, string>;
additional_guests: { email: string; name: string; }[]; booking_ref: string; booking_ref_salt:
string; guest: { email: string; name: string; }; timezone: string; email_language: string;
event_data: { location: string; when: { start_time: Date; end_time: Date; end_timezone:
string; start_timezone: string; object: string; }; }; event_organizer: { name: string; email:
string; is_organizer: boolean; }; } | undefined; scheduler: { available_days_in_future:
number; min_cancellation_notice: number; min_booking_notice: number; rescheduling_url?:
string | undefined; cancellation_url?: string | undefined; cancellation_policy?: string |
undefined; hide_additional_guests?: boolean | undefined; hide_cancellation_options?: boolean |
undefined; hide_rescheduling_options?: boolean | undefined; additional_fields?:
Record<string, AdditionalFields> | undefined; confirmation_redirect_url?: string | undefined;
organizer_confirmation_url?: string | undefined; }; organizer: { name: string; email: string;
}; slug: string; appearance: Appearance; booking_type: string; name: string; }
NameselectableDates
DescriptionThe dates that are selectable.
TypeDate[] | undefined
NamethemeConfig
DescriptionThe theme configuration.
Typeany
EventDescription
dateSelectedFired when a date is selected.
monthChangedFired when the month is changed.
PartDescription
ndpThe date picker host.
ndp__dateThe date.
ndp__date--current-dayThe current day.
ndp__date--current-monthThe dates in the current month.
ndp__date--disabledThe disabled dates.
ndp__date--selectedThe selected date.
ndp__dayThe day.
ndp__month-buttonThe month button.
ndp__month-headerThe month header.
ndp__titleThe title.