DayPilot.Row.events.forRange

The DayPilot.Row.events.forRange method returns an array of events that overlap the specified time range.

Declaration

DayPilot.Row.events.forRange(start, end)

Parameters

  • start - start date/time (DayPilot.Date or string in ISO 8601 format)
  • end - end date/time (DayPilot.Date or string in ISO 8601 format) 

Return Value

An array of DayPilot.Event objects.

Example

var dp = new DayPilot.Scheduler("dp");

// ...

var events = dp.rows.find("R1").events.forRange("2019-01-10T00:00:00", "2019-01-15T00:00:00");