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 returnstruewhen the event is to be included in the result
Find function syntax:
function f(e) {}Find function parameters:
e(DayPilot.Event) - object to test
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.2.6899.
Example
const phrase = "event";
const events = dp.events.findAll((e) => {
return e.data.text.toLowerCase().includes(phrase.toLowerCase());
});See Also
DayPilot.Calendar.events.find()
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot