Greetings,
Two Questions:
First- Is there a way to remove the concept of hours and minutes completely from the Scheduler even at the most zoomed in? We are only working with Days and it's causing me some time zone issues and when resizing an Event the time comes into play and I would like to avoid that completely.
Second-
I have something of a specific demand that came to me to have the normal non-working days of Sat-Sun but still be able to have events end on Saturday and Sunday and not count them in the duration. ( i can handle the duration manually if it's not possible to do that.)
The reason is we want to retain the styling that comes with the non-working days that separate weekends from the rest visually. I found that Events could have calendars assigned to them specifically and hoped to have one calendar for the project and one calendar for each event.
I also have an added complexity of having two Scheduler Pro on the same page which are Linked together. In both cases the weekends should not be added to the duration but at this point I will probably calculate the duration manually. My goal is to be able to display events that end on a weekend and have the specific styling the comes with the non-working time setting from the calendar.
I have a project calendar which is setup like this:
return new CalendarModel({
id: 'weekends',
name: 'Weekends',
intervals: [
{
recurrentStartDate: 'on Sat at 0:00',
recurrentEndDate: 'on Mon at 0:00',
isWorking: false,
},
],
});
Now I wanted to create essentially the same calendar where weekends are working days which is identical but isWorking = true.
return new CalendarModel({
id: 'week',
name: 'Week',
intervals: [
{
recurrentStartDate: 'on Sat at 0:00',
recurrentEndDate: 'on Mon at 0:00',
isWorking: true,
},
],
});
The way I wanted to assign them is when i'm initializing the day I want to set the project calendar, then each event's calendar afterwards like so:
schedulerProRef.project = project;
schedulerProRef.project.calendar = createWeekendCalendar();
project.eventStore.forEach((event: EventModel) => {
event.calendar = createAllWeekCalendar();
});
It doesn't seem to work. I have the same result as before when Events will not end on a Saturday and will end on Friday instead.
Do I have the correct approach? What should I do ?
Thanks for the support.