DayPilot.Scheduler.events.findAll

The events.findAll() method returns an array of events that match the specified rule.

Declaration

DayPilot.Scheduler.events.findAll(f);

Parameters

  • f - filter function that returns true when the event is to be included in the result; the function will receive a DayPilot.Event object with event data as the only argument

Return Value

An array of DayPilot.Event objects.

Example

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