pandakun
pandakun

Reputation: 55

Fullcalendar disable eventOrder

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

Upvotes: 1

Views: 542

Answers (1)

Ben Sewards
Ben Sewards

Reputation: 2661

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

Upvotes: 0

Related Questions