Fullcalendar disable eventOrder

424 Views Asked by At

Hi everyone is defaultly ordering by start time, title etc but I'm already fetching feed with exact type we want.It overrides the orderline and brokes the orderline. I'm fetching events with 2 type type:1, type:2 but type 2 events must shown before type 1.

Also I'm using the limit with

   contentHeight:800,
        firstDay: 1,
   eventLimit: true, 

        views: {
            month: {
                eventLimit: 3
            }
        },

it shows 1 event and +more but I want to show 2 event each day.Why it happens. Can i disable it. Thank you

http://jsfiddle.net/slyvain/waa23ry0/

I found this example it works but only the events starts in same time.Date overrides in sametime.I still got order them by title or something

1

There are 1 best solutions below

0
On

According to FC eventOrder documentation, you can subscribe a custom property as a string:

String / Array / Function, default: "start,-duration,allDay,title"

Example

{
    eventOrder: "-type"
}

With the minus sign, the ordering will appear in descending order (2 before 1).

ref: https://fullcalendar.io/docs/eventOrder