The events.filter() method applies a filter to the events in the JavaScript Scheduler.
After the filter is applied, the Scheduler updates the event list and selectively hides events according to the criteria implemented in DayPilot.Scheduler.onEventFilter.
DayPilot.Scheduler.events.filter(filter)filter (object | null) - custom filter object passed to DayPilot.Scheduler.onEventFilter as args.filterParam; use null to clear the filter and display all events
The structure of the filter object is up to your application. The DayPilot.Scheduler.onEventFilter event handler receives it for each event and decides whether the event remains visible.
dp.events.filter({ hide: true });DayPilot.Scheduler.onEventFilter
Event Filtering [doc.daypilot.org]