日本語
@eightkk/vue-weave / core / expandRecurringEvents
Function: expandRecurringEvents()
expandRecurringEvents<
E>(events,range,options?):E[]
Defined in: src/core/recurrence.ts:645
Replace the recurring events (those with recurrence) by their occurrences that overlap range, ready for EventCalendar. Each occurrence copies the event without recurrence, with id <event id>:<recurrenceId>, its start and end, seriesId (the event ID) and recurrenceId. Occurrences take the place of their series, in order of start.
An event without recurrence but with seriesId and recurrenceId is an override: a changed occurrence, which replaces the generated occurrence with the same seriesId and recurrenceId. Overrides and other events are returned as they are, whether or not they overlap the range. applyRecurringEdit creates overrides.
options.timeZone is the zone of series without their own (pass the calendar's timeZone). Throws the errors of expandRecurrence. The input is not modified.
Type Parameters
E
E extends CalendarEvent<unknown>
Parameters
events
readonly E[]
range
options?
Returns
E[]