The cellGroupBy property (string) specifies the group size used for the first row of the time header. It is kept for backwards compatibility; use DayPilot.Gantt.timeHeaders instead.
DayPilot.Gantt.cellGroupBy
"Hour" - groups the first time header row by hour.
"Day" - groups the first time header row by day.
"Week" - groups the first time header row by week.
"Month" - groups the first time header row by month.
"None" - disables grouping in the first time header row.
"Month"
The value of cellGroupBy is only used when it is referenced as a group size in DayPilot.Gantt.timeHeaders.
const gantt = new DayPilot.Gantt("dp", {
cellGroupBy: "Week",
// ...
});
gantt.init();
<daypilot-gantt [config]="config"></daypilot-gantt>
config: DayPilot.GanttConfig = {
cellGroupBy: "Week",
// ...
};
<DayPilotGantt
cellGroupBy="Week"
{/* ... */}
/>
<DayPilotGantt cellGroupBy="Week" <!-- ... --> />