DayPilot.Column.events.isEmpty

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.all()

DayPilot.Column.events.forRange()

DayPilot.Column.events.totalDuration()

DayPilot.Column Class

Availability

Availability of this API item in DayPilot editions:

LitePro
DayPilot for JavaScript