Skip to content

eventStyle

How events are drawn: tinted with their tone’s edge, or as filled blocks.

Type'tinted' | 'solid'
Default'tinted'
Live update (update())Yes
Declared inpackages/dom/src/calendar.ts
  • 'tinted' (the default): a light wash of the event’s tone with a strong edge on its start side — easy to read, quiet on a busy week.
  • 'solid': a block filled with the tone, its text on it — the classic look.

An event’s tone (a name of the theme’s tones) or its own colours choose the tone; --dz-event-tint, --dz-event-shade and --dz-event-edge tune the tinted look.

import { createCalendar } from '@dzcalendar/dom';
createCalendar(element, { timeZone: 'Europe/Paris', eventStyle: 'solid' });

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

The week, its events as filled blocks.