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


manualInputElem

● manualInputElem: HTMLInputElement | 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


cssPrefix

⇄ get cssPrefix(): string

Returns string


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(apply?: boolean): void

Parameters:

  • apply: boolean, Optional

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


renderManualDateInput

▸ renderManualDateInput(): HTMLInputElement

Returns HTMLInputElement


rerenderMonth

▸ rerenderMonth(): void

Returns void


rerenderSelectYear

▸ rerenderSelectYear(): void

Returns void


updateDisplayedDateValue

▸ updateDisplayedDateValue(): void

Returns void