Search
RecurrencePattern Enumeration
See Also
 






Specifies the interval at which recurring events occur.

Namespace: MindFusion.Scheduling
File: Enum.js

 Syntax

JavaScript  Copy Code

// enum
RecurrencePattern = {}

 Members

  Member name Description

ByTimeInterval

Repeats an event over a specified time interval.

Daily

Repeats an event every day.

Monthly

Repeats an event every month.

Weekly

Repeats an event every week.

Yearly

Repeats an event every year.

 Remarks

These values are assigned to the pattern property of the Recurrence class.

 Example

The following code creates a recurrence with weekly RecurrencePattern for a schedule item:

JavaScript  Copy Code

var p = MindFusion.Scheduling;

// setup the recurrence
var recurrence = new p.Recurrence();
recurrence.pattern = p.RecurrencePattern.Weekly;
recurrence.daysOfWeek = p.DaysOfWeek.Wednesday;
recurrence.startDate = date;
recurrence.recurrenceEnd = p.RecurrenceEnd.Never;
item.recurrence = recurrence;

 See Also