Search
Recurrence.daysOfWeek Property
See Also
 






Gets or sets the days of the week when the event occurs.

Namespace: MindFusion.Scheduling
File: Recurrence.js

 Syntax

JavaScript  Copy Code

get daysOfWeek() {}

 Property Value

One of the DaysOfWeek enumeration values.

 Example

The following code creates a recurrence for a schedule item for each Wednesday:

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