Event title.
Event start date and time. For all day events it's enough to pass only date without time.
Optional endDateOrDuration: null | number | DateEvent date end or event duration in minutes. Leave empty for all day events.
Optional description: stringDetails about the event.
Optional location: LocationPlace of the event. Place name are required, geo coordinates are optional.
List of people to invite. The first one will be considered as the event organizer.
Optional uid: stringUnique identifier of the event. Applicable only to ics files. Gives possibility to update the event invitation in the future by follow up email. If not provided, it will be generated automatically.
Private _attendeesPrivate _endPrivate _startOptional descriptionDetails about the event.
Private durationOptional locationPlace of the event. Place name are required, geo coordinates are optional.
Event title.
Optional uidUnique identifier of the event. Applicable only to ics files. Gives possibility to update the event invitation in the future by follow up email. If not provided, it will be generated automatically.
Private assertPrivate getPrivate getPrivate handleReschedule the event.
// manage all day event
const event = new Event('Hiking', new Date(2021, 6, 8))
event.reschedule(new Date(2021, 6, 8))
// covert general event to all day
event.reschedule(new Date(2021, 6, 8), null)
// change start date and time and set duration
event.reschedule(new Date(2021, 6, 8, 12, 0), 45)
// change start date and time, but leave the same duration
event.reschedule(new Date(2021, 6, 8, 13, 0))
// use end date instead of duration
event.reschedule(new Date(2021, 6, 8, 13, 0), new Date(2021, 6, 8, 13, 45))
The event. You can chain this method.
Event start date and/or time.
Optional endDateOrDuration: null | number | DateEvent date end or event duration in minutes. Leave empty for all day events or keep previously set duration.
Private setGenerated using TypeDoc
Event entity
Contains title, dates of start and end, description, location and attendees.