Using event id as a parameter:;

Using custom filter function as a parameter:;


  • id - id of the event to be found (string | number)
  • f - filter function that returns true if custom search condition is met (function)

Filter function syntax:

function f(data) {}

Filter function parameters:


DayPilot.Event object or null. If there are more events with the same id, it returns the first one.


Case insensitive search using event text:

var query = "my text";
var e = {
  var match = e.text().toUpperCase().indexOf(query.toUpperCase()) > -1;
return match; });