DayPilot.Scheduler.events.findAll

The events.findAll() method returns an array of Scheduler events that match the specified filter function.

Declaration

DayPilot.Scheduler.events.findAll(f)

Parameters

  • f (function) - filter function that returns true when the event is to be included in the result

Find function syntax:

function f(e) {}

Find function parameters:

Return Value

Returns an array of DayPilot.Event objects.

Notes

The filter function is called for each event in the Scheduler event collection.

Use events.find() when you only need the first matching event.

Example

const phrase = "event";
const events = dp.events.findAll((e) => {
  return e.data.text.toLowerCase().includes(phrase.toLowerCase());
});

See Also

DayPilot.Scheduler.events.find()

DayPilot.Scheduler Class

Availability

Availability of this API item in DayPilot editions:

LitePro
DayPilot for JavaScript