Is your feature request related to a problem? Please describe
Describe the solution you'd like
Describe your use case for implementing this feature
The goal is to create a room reservation calendar with the format per week.
A room cannot be reserved over several days. And certain time slots have to be "blocked", which is done with other events that have their own style and are neither resizable nor draggable.
Additional context
I manage to do this when the user "drops" his event with "eventTimesChanged". But I would like to do it when the user resizes and drags his event.
One solution would be to be able to override onResize and onDragging events to customize them, but is it possible to do this simply without touching the package itself?
Thanks so much for opening an issue! If you'd like me to give priority to answering your issue or would just like to support this project, then please consider sponsoring me
This seems like a reasonable request, resizing and dragging are currently very much of a black box with no control over them until the user finishes the action. I think if I add something like this to the API it would solve your problem:
[validateEventTimesChanged]="validateFn"
Where validateFn is a function like:
// called while the user is dragging or resizing an event
validateFn = ({event, newStart, newEnd}) => {
return true; // check condition here on whether you can drag or resize to this location
}
Right now the only way to get this behaviour is as you said, to override the onResize and onDragging events within the components themselves by extending the root week view component. This validateFn would let you avoid having to do that.
Let me know if that works for you! 馃槃
We would be interested in such limitations: preventing events created through drag to occur at the same time of another, in the daily view. We basically use angular-calendar plugin to manage the bookings in a farm for weddings or short term events (couple hours) so we cannot have multiple events at the same time :) Is that kind of limitation possible on daily view?
I finally had some time this weekend to get to this 馃槃 It's available now to try on the 0.29.0 branch, you can find instructions for how to install it here: https://github.com/mattlewis92/angular-calendar/pull/1249 and you can see an example of how to use it here. Please can you try it out in your app and let me know if it works ok for you. Thanks!

https://stackblitz.com/edit/no-duplicate-events-angular-calendar
I have created a workaround for old versions and added no dups logic while drag and create an event 馃槃
Most helpful comment
This seems like a reasonable request, resizing and dragging are currently very much of a black box with no control over them until the user finishes the action. I think if I add something like this to the API it would solve your problem:
Where
validateFnis a function like:Right now the only way to get this behaviour is as you said, to override the
onResizeandonDraggingevents within the components themselves by extending the root week view component. ThisvalidateFnwould let you avoid having to do that.Let me know if that works for you! 馃槃