Skip to content

multiMonthMaxColumns

How many months a multi-month view puts side by side, at most.

Typenumber
Default3
Live update (update())Yes
Declared inpackages/dom/src/calendar.ts

The year view (multiMonthYear, import '@dzcalendar/dom/multimonth') lays its months in a grid: as many columns as fit the width, up to this number. 1 stacks them, one month under the other — a phone’s choice. A month’s days are small: they show what fits, then “+N” (dayMaxLanes).

import { createCalendar } from '@dzcalendar/dom';
import '@dzcalendar/dom/multimonth';
const calendar = createCalendar(element, { timeZone: 'Europe/Paris', initialView: 'multiMonthYear', multiMonthMaxColumns: 2 });
// Later: one month under the other.
calendar.update({ multiMonthMaxColumns: 1 });

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

The year, its months two by two.

  • dayMaxLanes — a tiny day’s events.
  • views — a multi-month view of your own (several months).
  • initialView — opening on the year.