nowIndicator
A line across the time grid at the current time, moved every minute.
| Type | boolean |
|---|---|
| Default | true |
Live update (update()) | Yes |
| Declared in | packages/dom/src/calendar.ts |
What it does
Section titled “What it does”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.
Example
Section titled “Example”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 });import { Component } from '@angular/core';import { DZ_CALENDAR } from '@dzcalendar/angular';
@Component({ selector: 'app-agenda', imports: [DZ_CALENDAR], template: `<dz-calendar timeZone="Europe/Paris" [options]="{ nowIndicator: false }" />`,})export class Agenda {}import { DzCalendar } from '@dzcalendar/react';
export function Agenda() { return <DzCalendar timeZone="Europe/Paris" nowIndicator={false} />;}<script setup lang="ts">import { DzCalendar } from '@dzcalendar/vue';</script>
<template> <DzCalendar time-zone="Europe/Paris" :options="{ nowIndicator: false }" /></template>In Angular and Vue it goes in options; in React it is a prop.
Live demo
Section titled “Live demo”This week, now: the line crosses today’s column.
See also
Section titled “See also”scrollTime— where the grid is scrolled to first.timeZone— now, in this zone’s hours.hooks— the line’s own look (hooks.nowIndicator).