Skip to content

dayMaxLanes

How many rows of events a day of a month (or of a year) shows before “+N”.

Typenumber | 'auto' | null
Defaultnull in a month (every event), 'auto' in a year
Live update (update())Yes
Declared inpackages/dom/src/calendar.ts
  • null: every event — the weeks grow to hold them, and the month scrolls. The default in a month: nothing is hidden unless you ask.
  • 'auto': as many as the cell’s height holds, then “+N” — the default in a multi-month year’s tiny days, and the right choice for a crowded month.
  • A number: that many rows, the last one becoming “+N” when more events fall on the day.

“+N” opens a panel with the day’s events (its look: hooks.moreLink, hooks.morePopover). Given, a number or null holds in every day grid (a month, a week or a day of day cells, a year); 'auto' caps a month and a year only — a week or a day of cells grows to show everything. Left out, each view takes its own default again when it is shown. It does not touch the time grid (eventMaxStack) nor the timeline (timeline.maxLanes).

import { createCalendar } from '@dzcalendar/dom';
const calendar = createCalendar(element, { timeZone: 'Europe/Paris', initialView: 'dayGridMonth', dayMaxLanes: 'auto' });
// Later: every event again.
calendar.update({ dayMaxLanes: null });

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

Two rows a day: Thursday the 22nd holds five all-day events, so one shows and the second row is “+4 more”.