本文へ移動

@eightkk/vue-weave / core / layoutCalendarAgenda

Function: layoutCalendarAgenda() ​

layoutCalendarAgenda(events, days): CalendarAgendaDay[]

Defined in: src/core/eventCalendar.ts:535

The entries of an agenda: for each of days (ascending, non-overlapping ranges, usually the EventCalendarDays of the agenda view), the events that overlap it (a zero-duration event when its time is inside it). A multi-day event is listed on every day it covers, clipped to the day, with continuesBefore and continuesAfter; on a day it covers completely it counts as all-day, like an allDay event. Order within a day: all-day entries first, then by start, longer first, then ID, so the result does not depend on input order. Every day is returned, with empty items when it has no events. Throws Error for an invalid or duplicate event ID and RangeError for an invalid interval or day. Returns new objects and leaves its arguments unchanged.

Parameters ​

events ​

readonly object[]

days ​

readonly TimeRange[]

Returns ​

CalendarAgendaDay[]

MIT ライセンスで公開しています。