Search
Recurrence Constructor
See Also
 






Initializes a new instance of the Recurrence class.

Namespace: MindFusion.Scheduling
File: Recurrence.js

 Syntax

JavaScript  Copy Code

function Recurrence ()

 Example

The following code creates a Recurrence and assigns it to an 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