Customizing the agendaWeek view of Full Calender

大城市里の小女人 提交于 2020-01-06 01:07:12

问题


I want to customize the agendaWeek view of full calender, by swapping the axes. Currently the seven days of the week are displayed on the top and the time slots (12 am to 11:59 pm) are displayed on the left. I want to swap the positions.

Basically I want to create a school timetable by doing this.

Any pointers on how to do this?


回答1:


You can't customize the agendaWeek view of Full Calender to swap the axes. It only displays one or more columns with time slots running vertically, see source. The feature your are looking for is simply not implemented on the agendWeek view.

Any pointers on how to do this?

One would need to extend Full Calendar and add a new View, e.g. agendaWeekAxesSwapped and they did because of a feature request:

A new view, like Agenda view, but with axis flipped https://github.com/fullcalendar/fullcalendar/issues/1753

The new view is called "timeline" and is available as a commercial addon: http://fullcalendar.io/scheduler/

How to get started?

When you read the license you will see, that it has a "Non-Commercial Creative Commons" for schools and universities: http://fullcalendar.io/scheduler/license/

That means you can simply download and use the Free Trial version, when you fall under the CC-license, as described here: http://fullcalendar.io/scheduler/download/


Alternative: jquery-timetable

Maybe you can switch to another JS package.

A good, but not well maintained alternative for a school timetable is jQuery Timetable.

  • https://github.com/holygeek/jquery-timetable
  • http://www.jadualsekolah.com/demo/


来源:https://stackoverflow.com/questions/32780954/customizing-the-agendaweek-view-of-full-calender

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