本文へ移動

@eightkk/vue-weave / core / shiftEventCalendarDate

Function: shiftEventCalendarDate() ​

shiftEventCalendarDate(view, date, steps, options?): number

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

The anchor date steps views before (negative) or after date: whole local days for day, weeks for week, months for month, and weeks or agendaDays days for agenda, keeping the local time of day. A month step keeps the day of the month, clamped to the length of the target month (January 31 + 1 month is February 28 or 29). Throws RangeError for a non-integer steps.

Parameters ​

view ​

EventCalendarViewName

date ​

number

steps ​

number

options? ​

EventCalendarOptions

Returns ​

number

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