Skip to content

secondaryCalendar

A second calendar’s date shown beside each date — the Hijri under the Gregorian.

Typestring | null
Defaultnull
Live update (update())Yes
Declared inpackages/dom/src/calendar.ts

Each day cell and each day’s heading shows its date in this calendar too, small, beside the first one (displayCalendar or the locale’s). It serves two readers at once: a clinic in Algiers whose patients count in both. Any of the platform’s calendars (an unknown name throws a RangeError); null (the default) none, and nothing is shown when it is the calendar the dates are already written in.

import { createCalendar } from '@dzcalendar/dom';
createCalendar(element, { timeZone: 'Africa/Algiers', locale: 'fr-DZ', initialView: 'dayGridMonth', secondaryCalendar: 'islamic-umalqura' });

In the frameworks it is an Angular input (secondaryCalendar) and a React and Vue prop (secondaryCalendar, secondary-calendar).

October 2026, each day with its Hijri date.