The events.findAll() method returns an array of events that match the specified rule.
DayPilot.Scheduler.events.findAll(f);
An array of DayPilot.Event objects.
const phrase = "event"; const events = dp.events.findAll(e => { return e.data.text.toLowerCase().includes(phrase.toLowerCase()); });