DayPilot.Queue.events.find

The events.find() method returns the event with the specified ID.

Declaration

DayPilot.Queue.events.find(id)

Parameters

  • id (string | number) - ID of the event to find

Return Value

Returns a DayPilot.Event object if a matching event is found; otherwise returns null.

Notes

This method looks up queue items by event ID.

Example

Find an event by ID:

const event = dp.events.find(3);

See Also

DayPilot.Queue.events.add()

DayPilot.Queue.events.remove()

DayPilot.Queue.events.update()

DayPilot.Queue.events.list

DayPilot.Queue Class

Availability

Availability of this API item in DayPilot editions:

LitePro
DayPilot for JavaScript