Skip to content

nowIndicator

A line across the time grid at the current time, moved every minute.

Typeboolean
Defaulttrue
Live update (update())Yes
Declared inpackages/dom/src/calendar.ts

In a week or a day view, a line marks now across today’s column, when today is shown. It moves on every minute, from the device’s clock. With false, no line — in the Pro’s timeline either.

Its look is the application’s through hooks.nowIndicator; its colour is the theme’s --dz-now token.

import { createCalendar } from '@dzcalendar/dom';
const calendar = createCalendar(element, { timeZone: 'Europe/Paris', initialView: 'timeGridDay' });
// Later: no line (a printout, a past period).
calendar.update({ nowIndicator: false });

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

This week, now: the line crosses today’s column.

  • scrollTime — where the grid is scrolled to first.
  • timeZone — now, in this zone’s hours.
  • hooks — the line’s own look (hooks.nowIndicator).