1.
I will display two week45. how to correct display week number? Week45 Week46 Week47
2.
How to display two month work day in the scheduler? ( Nov & Dec )
Below are angular scheduler code.
config: any = {
eventHeight: 40,
cellWidthSpec: "Auto",
cellWidth: 60,
timeHeaders: [ { "groupBy": "Month" },{"groupBy":"Week"},{"groupBy":"Day", format: "d"}],
scale: "CellDuration",
cellDuration: 1440,
showNonBusiness: false,
treePreventParentUsage: true,
days: DayPilot.Date.today().daysInMonth(),
startDate: DayPilot.Date.today().firstDayOfMonth(),
timeRangeSelectedHandling: "Enabled",
treeEnabled: true,
onBeforeTimeHeaderRender: args=> {
if (args.header.level===1) {
args.header.html = "Week "+ args.header.start.weekNumberISO();
}
},
onBeforeEventRender: args => {
args.data.backColor = args.data.color;
args.data.html = "<div>" + args.data.text + "<br><span class='task-duration'>" + new DayPilot.Duration(args.data.start, args.data.end).totalHours() + " hours</span></div>";
args.data.areas = [
{ top: 5, right: 3, height: 12, icon: "icon-triangle-down", visibility: "Hover", action: "ContextMenu", style: "font-size: 12px; background-color: rgba(255, 255, 255, .5); border: 1px solid #aaa; padding: 3px; cursor:pointer;" }
];
},