DefaultCalendar class

Extends

Calendar

Index

Constructors

Protected Properties

Protected Accessors

Public Methods

Protected Methods

Constructors


constructor

⊕ new DefaultCalendar(slot: HTMLElement,options?: CalendarOptions): DefaultCalendar

Parameters:


Protected Properties


calendarBody

● calendarBody: HTMLElement | null = null


currentDate

● currentDate: Date


daysOfWeek

● daysOfWeek: string[] = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"]


headerTextElem

● headerTextElem: HTMLElement | null


months

● months: string[] = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]


options

● options: CalendarOptions


selectMonthElem

● selectMonthElem: HTMLSelectElement | null


selectYearElem

● selectYearElem: HTMLSelectElement | null


selectedMonth

● selectedMonth: number


selectedYear

● selectedYear: number


slot

● slot: HTMLElement


Protected Accessors


calendarBody

● calendarBody: HTMLElement | null = null


currentDate

● currentDate: Date


daysOfWeek

● daysOfWeek: string[] = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"]


headerTextElem

● headerTextElem: HTMLElement | null


months

● months: string[] = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]


options

● options: CalendarOptions


selectMonthElem

● selectMonthElem: HTMLSelectElement | null


selectYearElem

● selectYearElem: HTMLSelectElement | null


selectedMonth

● selectedMonth: number


selectedYear

● selectedYear: number


slot

● slot: HTMLElement


Public Methods


getDate

▸ getDate(): Date

Returns Date


render

▸ render(): void

Returns void


setDate

▸ setDate(date: Date): void

Parameters:

  • date: Date

Returns void


Protected Methods


dateChanged

▸ dateChanged(): void

Returns void


jump

▸ jump(year: number,month: number): void

Parameters:

  • year: number
  • month: number

Returns void


next

▸ next(): void

Returns void


prev

▸ prev(): void

Returns void


renderCalendarButtons

▸ renderCalendarButtons(): HTMLElement

Returns HTMLElement


rerenderMonth

▸ rerenderMonth(): void

Returns void


rerenderSelectYear

▸ rerenderSelectYear(): void

Returns void