Full calendar with google calendar

倾然丶 夕夏残阳落幕 提交于 2019-12-24 19:29:22

问题


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:

  1. 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?

  2. 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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!