Skip to content

Overlapping events #10

Closed Answered by antoniandre
MichalVisnovsky asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @MichalVisnovsky,

FYI, this repo and discussion is for the version 5 only. For version 4, you should open an issue here.

That being said, yes there are some ways.
In both v4 and v5, you can use @event-drop event listener like <vue-cal :events="events" @event-drop="onEventDrop"> and do some checks in there.
It will be facilitated in the v5 (can't tell you how now as I'll be working on it shortly) but in the v4, you receive the event as a parameter where you can check the start and end, then compare to all the events dates in your events array.

This piece of code should be something close to what you're looking for ;)
you'll have to test it though.

const events = ref([])

const onEventDrop 

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@MichalVisnovsky
Comment options

Answer selected by antoniandre
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants