Skip to content

allDaySlot

The row above a time grid’s hours where all-day events go.

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

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.

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),
});

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

The week without the all-day row: the hours start at the top.