Skip to content

Entry

Studio is being deprecated, please head over to the documentation page for Mattercraft, our most advanced 3D tool for the web, where you can find the most recent information and tutorials.

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.

VariableTypeDescription
titlestringThe title of the event.
startJavaScript Date objectThe start time of the event.
endJavaScript Date objectThe end time of the event.
allDayoptional, booleanIf true the event will be marked as lasting the entire day.
locationoptional, stringThe location of the event.
urloptional, stringAny URL you want to attach.
notesoptional, stringAny notes you want added to the event.
recurrenceoptional, EntryRecurrenceDetails of the event’s reoccurrence.
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"
});