jQuery FullCalendar event sorting

前端 未结 5 1172
南方客
南方客 2020-12-16 05:24

I have numerous events that are all day events, and all start at the same time. I create the events in the order I would like them to appear on the full calendar view, but t

5条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-16 05:33


    Hi,

    For those that keep searching for a better solution to this, now there is a new event in the version 2.4.0 of fullcalendar called eventOrder.

    By default, FullCalendar decides that events with longer durations and earlier start times are sorted above other events. However, events often have the same exact start time and duration, which is especially true for all-day events. By default, when this happens, events are sorted alphabetically by title. eventOrder provides the ability to override this behavior.

提交回复
热议问题