displayEventTime
Whether an event shows its time beside its title.
| Type | boolean |
|---|---|
| Default | true |
Live update (update()) | Yes |
| Declared in | packages/dom/src/calendar.ts |
What it does
Section titled “What it does”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.
Example
Section titled “Example”import { createCalendar } from '@dzcalendar/dom';
createCalendar(element, { timeZone: 'Europe/Paris', initialView: 'dayGridMonth', displayEventTime: false });import { Component } from '@angular/core';import { DZ_CALENDAR } from '@dzcalendar/angular';
@Component({ selector: 'app-agenda', imports: [DZ_CALENDAR], template: `<dz-calendar timeZone="Europe/Paris" view="dayGridMonth" [options]="{ displayEventTime: false }" />`,})export class Agenda {}import { DzCalendar } from '@dzcalendar/react';
export function Agenda() { return <DzCalendar timeZone="Europe/Paris" defaultView="dayGridMonth" displayEventTime={false} />;}<script setup lang="ts">import { DzCalendar } from '@dzcalendar/vue';</script>
<template> <DzCalendar time-zone="Europe/Paris" view="dayGridMonth" :options="{ displayEventTime: false }" /></template>In Angular and Vue it goes in options; in React it is a prop.
Live demo
Section titled “Live demo”The month, each event its title only.
See also
Section titled “See also”allDaySlot— the all-day row.events— an event’s fields.hooks— an event’s own content (hooks.event).