DayPilot.Calendar.events.findAll

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

Declaration

DayPilot.Calendar.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 Calendar event collection.

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

Available since 2026.1.6887.

Example

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

See Also

DayPilot.Calendar.events.find()

DayPilot.Calendar Class

Availability

Availability of this API item in DayPilot editions:

LitePro
DayPilot for JavaScript