Skip to content

hiddenDays

Weekdays the calendar leaves out of every view, as ISO weekdays.

Typereadonly Weekday[]
Default[]
Live update (update())Yes
Declared inpackages/core/src/kernel.ts

With hiddenDays: [3], a week has no Wednesday: its columns close up, a month loses that column, and moving or resizing an event never lands on it. Events on a hidden day are not drawn (they are still there: the store keeps them).

The numbers are ISO weekdays: 1 Monday … 7 Sunday. weekends: false adds 6 and 7 to these. A view of your own (views) can name its own hiddenDays, which win for it.

import { createCalendar } from '@dzcalendar/dom';
const calendar = createCalendar(element, { timeZone: 'Europe/Paris', hiddenDays: [3] });
// Later: every day again.
calendar.update({ hiddenDays: [] });

In the frameworks it is an input: Angular’s hiddenDays, React’s hiddenDays, Vue’s hidden-days.

The week, Wednesday (3) left out.

  • weekends — Saturday and Sunday at once.
  • firstDay — the same ISO weekdays.
  • views — a view’s own hidden days.