DayPilot.Switcher.active

The active read-only property contains details about the active calendar view.

Declaration

DayPilot.Switcher.active

Possible Values

  • control (DayPilot.Calendar or DayPilot.Month) - the calendar component reference

Notes

The returned object has a single member that holds a reference to the active calendar component:

  • control (DayPilot.Calendar or DayPilot.Month) - the calendar component reference

Example

const activeView = switcher.active;
const calendar = activeView.control;

See Also

DayPilot.Switcher Class

Availability

Availability of this API item in DayPilot editions:

LitePro
DayPilot for JavaScript