The isEmpty() method returns true if there are no events in the calendar column.
Declaration
DayPilot.Column.events.isEmpty()Return Value
Returns true if there are no events in the column; otherwise it returns false.
Example
const dp = new DayPilot.Calendar("dp", {
// ...
});
dp.init();
const noEvents = dp.columns.find(DayPilot.Date.today()).events.isEmpty();See Also
DayPilot.Column.events.forRange()
DayPilot.Column.events.totalDuration()
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot