Switch Weekly Daily
6 years ago.
Dear all , i am beginner with Daypilot and i am using this exemple
https://code.daypilot.org/27453/html5-hotel-room-booking-javascript-php
I would like change time range button week/day with hour.
On Loading everything is ok --> schedule on day mode with hours.
// this code.
var dp = new DayPilot.Scheduler("dp");
dp.allowEventOverlap = false;
dp.startDate = DayPilot.Date.today();
loadTimeline(DayPilot.Date.today());
dp.eventDeleteHandling = "Update";
dp.days = 1;
dp.scale = "Hour";
dp.timeHeaders = [
{ groupBy: "Month", format: "MMM yyyy" },
{ groupBy: "Day", format: "ddd d" },
{ groupBy: "Hour"}
];
When i use time range button
week selection : week load but missing scale hour
day selection : load 2 days without hour.
Please could you help me ?
DayPilot