Our pure JavaScript Scheduler component
In the non-working-time demo there are events that are able to show over the non working time calendar. Is there a certain setting that allows this to happen?
This is the desired look
- Screen Shot 2023-01-26 at 9.51.20 AM.png (124.9 KiB) Viewed 446 times
However in our implementation the events show like this if they end up on the non working time calendar.
- Screen Shot 2023-01-26 at 9.51.12 AM.png (45.68 KiB) Viewed 446 times
My implementation is the same as above as far as I can see. The events show perfectly fine when in a working time, but if they happen to be assigned to non working time due to emergency or what ever it shows like the second image.
Hey peaguilar,
There is no special configuration, that's the default behavior, when some event ends in non-working time, the Scheduler "extends" the event to the next working day available and continues to count the duration of the event.
Also, how do you assign the event to the non-working time?
Could you please share a sample with your configuration and some fake data for us to check what's causing that behavior on your side?
Ah okay I see. I changed this event to start in working time, and go over, and it is working like it should
- Screen Shot 2023-01-26 at 12.32.45 PM.png (139.87 KiB) Viewed 435 times
But what about when it doesnt start in non working time. Is there anything I can do to make it still show properly? Because when it doesnt start in non working time, then scheduler shows it like this.
- Screen Shot 2023-01-26 at 9.51.12 AM.png (45.68 KiB) Viewed 435 times
With our system you can update the times of the events from other pages. So the api allows any times to be added, and do not take the non working time in to account. So when we get the api data it will render the event in non working time, which is why we are able to add to non working time like this.
We only want it to ignore the non working time if this is set from the other screen. The reason is for an emergency etc. We want scheduler to still not allow drag and drop in non working time, but if an event happens to be scheduled to someones non working time, we would like it to at least show the task with out having the style different like this. So you are saying dynamically add a calendar to create working time for that event?