The totalDuration() method returns the total duration of all events in a calendar column.
Declaration
DayPilot.Column.events.totalDuration()Return Value
Returns a DayPilot.Duration object representing the total duration of all events in the column.
Example
const dp = new DayPilot.Calendar("dp", {
// ...
});
dp.init();
const total = dp.columns.find(DayPilot.Date.today(), "A").events.totalDuration();See Also
DayPilot.Column.events.forRange()
DayPilot.Column.events.isEmpty()
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot