The events.findAll() method returns an array of Calendar events that match the specified filter function.
DayPilot.Calendar.events.findAll(f)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:
e (DayPilot.Event) - object to test
Returns an array of DayPilot.Event objects.
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.
const phrase = "event";
const events = dp.events.findAll((e) => {
return e.data.text.toLowerCase().includes(phrase.toLowerCase());
});