Extends
Index
Constructors
Protected Properties
- calendarBody
- currentDate
- daysOfWeek
- headerTextElem
- manualInputElem
- months
- options
- selectMonthElem
- selectYearElem
- selectedMonth
- selectedYear
- slot
Protected Accessors
Public Methods
Protected Methods
- dateChanged
- jump
- next
- prev
- renderCalendarButtons
- renderManualDateInput
- rerenderMonth
- rerenderSelectYear
- updateDisplayedDateValue
Constructors
constructor
⊕ new DefaultCalendar(slot: HTMLElement
,options?: CalendarOptions): DefaultCalendar
Parameters:
- slot:
HTMLElement
- options: CalendarOptions, Optional
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