问题
I am trying to implement full calendar on my website. I got the calendar working, with google calendar providing the backend data. I have a few questions:
How do I add agendaweek, agendaday to the view(i dont understand from the documentation) so that i have 3 buttons on top when the calendar loads?
Is there a way to make the user not click on the calendar event since it brings up a google calendar page with the event details. I want the users instead to simply hover over the event to get the event details. It would be great to not show the google calendar interface for the users, but simply to use it on the backend to input calendar data. How can i acheive this?
回答1:
1) You need to include the view options you want to display in the header. Something like this:
header: {
left: 'prev,next today',
center: 'title',
right: 'month,agendaWeek,agendaDay'
}
2) You can interrupt the click event on your events using the eventClick
callback. Here you can direct the event to a popup or return false
. You can use the eventMouseover
callback for hovers. Check these links for the docs on these callbacks - eventClick and eventMouseOver
Hope this helps!
来源:https://stackoverflow.com/questions/15006685/full-calendar-with-google-calendar