allDaySlot
The row above a time grid’s hours where all-day events go.
| Type | boolean |
|---|---|
| Default | true |
Live update (update()) | Yes |
| Declared in | packages/dom/src/calendar.ts |
What it does
Section titled “What it does”In a week or a day view, all-day events (a day off, a conference) sit in a row above the hours. False removes the row: the hours start at the top.
Without the row, all-day events are not drawn in the time grid — a day off
would be invisible. The calendar says so (events-not-drawn, through
onProblem or the console). An all-day background event still washes its
columns. Its label is the application’s through hooks.allDayLabel.
Example
Section titled “Example”import { createCalendar } from '@dzcalendar/dom';
createCalendar(element, { timeZone: 'Europe/Paris', allDaySlot: false, events: [{ id: 'off', title: 'Day off', start: '2026-10-23', allDay: true }], // Said once (events-not-drawn): this day off is not drawn in the week. onProblem: (problem) => console.warn(problem.code, problem.detail),});import { Component } from '@angular/core';import { DZ_CALENDAR } from '@dzcalendar/angular';
@Component({ selector: 'app-agenda', imports: [DZ_CALENDAR], template: `<dz-calendar timeZone="Europe/Paris" [options]="{ allDaySlot: false }" />`,})export class Agenda {}import { DzCalendar } from '@dzcalendar/react';
export function Agenda() { return <DzCalendar timeZone="Europe/Paris" allDaySlot={false} />;}<script setup lang="ts">import { DzCalendar } from '@dzcalendar/vue';</script>
<template> <DzCalendar time-zone="Europe/Paris" :options="{ allDaySlot: false }" /></template>In Angular and Vue it goes in options; in React it is a prop.
Live demo
Section titled “Live demo”The week without the all-day row: the hours start at the top.
See also
Section titled “See also”displayEventTime— what an event shows.events— all-day events (allDay: true).hooks— the row’s label (hooks.allDayLabel).