Retrieves all events, including recurrent item instances, scheduled to occur in the specified time interval.
Namespace: MindFusion.Scheduling
File: Schedule.js
SyntaxJavaScript
Copy Code
|
|---|
function getAllItems (startTime, [endTime, [resource]]) |
List. The list of events scheduled to occur in the specified period.
ExampleThe following code gets all appointment for the specified resource. The time span begins with the first day, visible in the calendar and spans 10 days.
JavaScript
Copy Code
|
|---|
var p = MindFusion.Scheduling; var startTime = p.DateTime.getWeekFirstDate(calendar.date); var resource; // add a resource to the schedule.resources collection var _EmmyAppointments = calendar.schedule.getAllItems(startTime, endTime, resource); |
See Also