Search
ReminderType Enumeration
See Also
 






Specifies the type of a Reminder.

Namespace: MindFusion.Scheduling
File: Enum.js

 Syntax

JavaScript  Copy Code

// enum
ReminderType = {}

 Members

  Member name Description

Exact

Trigger the reminder at the exact time specified in its Date property.Note: Recurring items cannot have exact reminders.

Leading

Trigger the reminder at the specified TimeInterval before the item's scheduled start time.Note: Tasks cannot have leading reminders.

 Example

The following code creates a schedule item with a reminder that starts one minute before the event is due to take place:

JavaScript  Copy Code

var p = MindFusion.Scheduling;
// add an item with reminder
item = new p.Item();
item.startTime = p.DateTime.addMinutes(date, 2);
item.endTime = p.DateTime.addHours(item.startTime, 2);
item.subject = "GYM";

var reminder = new p.Reminder();
reminder.message = "Speaking of the " + item.subject + ", go!!";
reminder.type = p.ReminderType.Leading;
reminder.timeInterval = p.TimeSpan.fromMinutes(1);
item.reminder = reminder;

 See Also