The events.findAll() method returns an array of Scheduler events that match the specified filter function.
DayPilot.Scheduler.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 Scheduler event collection.
Use events.find() when you only need the first matching event.
const phrase = "event";
const events = dp.events.findAll((e) => {
return e.data.text.toLowerCase().includes(phrase.toLowerCase());
});