vkurko / calendar

Full-sized drag & drop JavaScript event calendar with resource & timeline views
https://vkurko.github.io/calendar/
MIT License
969 stars 82 forks source link

Unable to get dateClick and noEventsClick #183

Closed tatianavazquezvl closed 9 months ago

tatianavazquezvl commented 9 months ago

Hello!

I have a problem with these two methods, my goal is to click on a day and create a new event. I am using Svelte. I added the "dateClick" event to the options, and put just a simple console.log of the info and it is not showing when I click on a day or even an event. Same thing happens with the noEventsClick method. I also tried to change a variable inside the two functions, and console log it to check if it changed, and again nothing.

Lastly, I checked that there's an option to add 'noEventsContent', I tried that out and the text or html I put there didn't show in the days with no events.

Here's my code:

https://svelte.dev/repl/1ab8b57e55244904bb3b2a9778ba9d89?version=4.2.1

Here's a demo:

https://github.com/vkurko/calendar/assets/143443292/c1e741e1-ed12-438b-b059-43e4701f622c

Thank you so much for reading :)

vkurko commented 9 months ago

Hello,

Since v1.0.0 the dateClick option requires the Interaction plugin. It is mentioned in the documentation.

vkurko commented 9 months ago

noEventsContent only applies to the list views, not dayGrid.

vkurko commented 9 months ago

I hope I can close this issue.