How can I generate Calendar with Days viewType heaving geader groups ove dates in columns, like timeHeaderGroups i Scheduler or even Resorce groups.
Also, this example at https://doc.daypilot.org/calendar/column-header-hierarchy/ is not working:
const dp = new DayPilot.Calendar("dp"); dp.viewType = "Resources"; dp.headerLevels = 2; dp.columns = []; const group = { name: "John", children: []}; dp.columns.push(group); const start = DayPilot.Date.today().firstDayOfWeek(); for (var i = 0; i < 7; i++) { const date = start.addDays(i); const column = {name: date.toString("MMMM d, yyyy"), id: "john", start: date}; group.children.push(column); }; dp.init();
Regards