Skip to content

displayEventTime

Whether an event shows its time beside its title.

Typeboolean
Defaulttrue
Live update (update())Yes
Declared inpackages/dom/src/calendar.ts

A timed event shows its time beside its title: its start and end in a time grid (09:00 – 09:45), its start in a month. With false, the title alone — for a grid whose hours already say it, or a month of short labels.

All-day events never show a time. How the time is written is formats’ (formats: { eventTime: … }), and the whole content is the application’s through hooks.event.

import { createCalendar } from '@dzcalendar/dom';
createCalendar(element, { timeZone: 'Europe/Paris', initialView: 'dayGridMonth', displayEventTime: false });

In Angular and Vue it goes in options; in React it is a prop.

The month, each event its title only.

  • allDaySlot — the all-day row.
  • events — an event’s fields.
  • hooks — an event’s own content (hooks.event).