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.remove()
DayPilot.Queue.events.update()
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot