Hi everyone!
I’m trying to implement a monthly timeline with drag&drop events that only shows the working days and the event could only be created on working days.
I mean: If I have a three-day event that starts on Thursday, I want it to end on Monday, but instead the timeline shows a portion of the event as if it ends on Saturday.
I configured “invalids” to avoid weekends and it is also strict. Let me show you the piece of code with these configs:
Thanks for the answer! I’ve already tried that, but it doesn’t solve the problem.
I mean, when I configure the timeline to show the weekends, it works perfectly:
We don’t have a built-in solution for this, I mean with that config the component won’t break your event into two parts (Thursday - Friday and Monday in case of a three-day event).
As an alternative solution, what you can do is to check in the onEventDragEndlifecycle event if the dropped event is overlapping with invalid periods, and if yes, you will need to break it up.