Yes, you can do it using onBeforeTimeHeaderRender event handler:
import {Component, ViewChild, AfterViewInit} from '@angular/core';
import {DayPilot, DayPilotSchedulerComponent} from 'daypilot-pro-angular';
import {DataService} from './data.service';
@Component({
selector: 'scheduler-component',
template: `<daypilot-scheduler [config]="config"></daypilot-scheduler>`
})
export class SchedulerComponent implements AfterViewInit {
config: DayPilot.SchedulerConfig = {
// ...
timeHeaders: [
{groupBy:"Week"},
{groupBy:"Day",format:"d"}
],
onBeforeTimeHeaderRender: args => {
if (args.header.level === 0) {
const week = args.header.start.weekNumberISO();
args.header.text = `Week ${week}`;
}
},
};
// ...
}
See also:
https://doc.daypilot.org/scheduler/time-header-customization/