Skip to content

CalendarView

The CalendarView control is used to display days of a month.
The CalendarView inherits all the methods and properties from the base class View.

Constructor:

  • constructor(parent: View)
    Creates an instance of CalendarView control.
    • parent: the View containing the control itself.

Properties:

  • date: Date
    The currently selected date.
  • firstDayOfWeek: CalendarViewDays
    Defines what is the first day in the week displayed at the left calendar border. Can be one of CalendarViewDays values (Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday). Default is CalendarViewDays.Sunday.
  • numberOfWeeksShown: boolean
    Defines how many weeks are displayed in the View. Default is 6.
  • headerHighlight: string
    Color for the header background.
  • headerForeground: string
    Color for the header text.

Methods:

  • change(handler: ()=> any)
    Registers an event handler that is triggered after the date selection in the View changes.