Fullcalendar onclick show dayview
Asked Answered
D

1

5

Im new to Javascript stuff especially on JSON and Jquery. I have successfully implement the monthly view of FullCalendar but is there anyway to show or pop up the dayview based on the date when user clicked on monthly view? Any help would be much appreciated

Depressomotor answered 15/11, 2012 at 14:36 Comment(0)
E
17

I am guessing you want to switch to the day view when a user clicks on any day in the month view. If so, you can achieve this by using dayClick and changeView callbacks of FullCalendar.

Check this fiddle for a demo: http://jsfiddle.net/100thGear/krJcL/

Let me know if this helps!

Euchromatin answered 19/11, 2012 at 22:9 Comment(2)
this should be marked as the correct answer, still applicable.Melodeemelodeon
just one thing, looks like the dayClick event changed slightly since then: fullcalendar.io/docs/mouse/dayClick - dayClick: function(date, jsEvent, view) {Populous

© 2022 - 2024 — McMap. All rights reserved.