You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First, thanks to you guys for the open-source of this wonderful project, we've got a lot of useful features in our internal OA project.
Secondly, our calendar app is similar to Google Calendar and Apple Calendar, we have two kinds of events, one is event, and the other one is task.
in our requirements, we will call RPC to add events to the calendar for our company employees. but for our high leaders like the Director, VP, or CEO.
Their calendar has many events in just one day, but the order of the events is not as ideal as we think. because the order of events now is by localizer.sortEvents algorithm and cannot be customized by any open API.
That means if we wanna change the order our way, like to make the finished event order to the last, to make the confirmed/processing event the first.
To adapt our business, we must rewrite the dayjsLocalizer.sortEvents method. But I found that sortWeekEvents and sortEvents as pass a simple event object without other properties only has:
We hope you can pass all of the rest properties of the event object, or you can provide a customSortEvent API to make the library users can customize the sort of the events.
Suggested solution
To provide a new API like customSortEvents(eventA: Event, eventB: Event)
Or pass down all of the rest properties of the event object to the localizer.sortEvents API
Clear and concise description of the problem
First, thanks to you guys for the open-source of this wonderful project, we've got a lot of useful features in our internal OA project.
Secondly, our calendar app is similar to Google Calendar and Apple Calendar, we have two kinds of events, one is
event
, and the other one istask
.in our requirements, we will call RPC to add events to the calendar for our company employees. but for our high leaders like the Director, VP, or CEO.
Their calendar has many events in just one day, but the order of the events is not as ideal as we think. because the order of events now is by
localizer.sortEvents
algorithm and cannot be customized by any open API.That means if we wanna change the order our way, like to make the
finished
event order to the last, to make theconfirmed
/processing
event the first.To adapt our business, we must rewrite the
dayjsLocalizer.sortEvents
method. But I found thatsortWeekEvents
andsortEvents
as pass a simple event object without other properties only has:We hope you can pass all of the rest properties of the event object, or you can provide a
customSortEvent
API to make the library users can customize the sort of the events.Suggested solution
customSortEvents(eventA: Event, eventB: Event)
localizer.sortEvents
APIThanks
Alternative
No response
Additional context
No response
Validations
Would you like to open a PR for this feature?
The text was updated successfully, but these errors were encountered: