Entry

interface Entry {
    title: string,
    start: Date,
    end: Date,
    allDay?: boolean,
    location?: string,
    url?: string,
    notes?: string,
    recurrence?: EntryRecurrence
}

An event entry to add to the calendar.

Variables

Variable Type Description
title string The title of the event.
start JavaScript Date object The start time of the event.
end JavaScript Date object The end time of the event.
allDay optional, boolean If true the event will be marked as lasting the entire day.
location optional, string The location of the event.
url optional, string Any URL you want to attach.
notes optional, string Any notes you want added to the event.
recurrence optional, EntryRecurrence Details of the event's reoccurrence.

Example

Z.calendar.add({
  title: "Zappar's 10-year Anniversary Party",
  start: new Date(2021, 3, 1, 19, 0, 0),
  end: new Date(2021, 3, 2, 2, 0, 0),
  location: "London",
  notes: "BYOB"
});
zapcode branded_zapcode i