DefaultDateTimePicker class
Extends
Section titled “Extends”Constructors
Section titled “Constructors”constructor
Section titled “constructor”⊕ new DefaultDateTimePicker(options?: DateTimePickerOptions): DefaultDateTimePicker
Parameters:
Section titled “Parameters:”- options: DateTimePickerOptions, Optional
Protected Properties
Section titled “Protected Properties”calendar
Section titled “calendar”● calendar: Calendar | null
= null
calendarSlot
Section titled “calendarSlot”● calendarSlot: HTMLElement
currentDateTime
Section titled “currentDateTime”● currentDateTime: Date
nowButton
Section titled “nowButton”● nowButton: HTMLElement
options
Section titled “options”● options: DateTimePickerOptions
● slot?: HTMLElement
submitButton
Section titled “submitButton”● submitButton: HTMLElement
timePicker
Section titled “timePicker”● timePicker: TimePicker | null
= null
timePickerSlot
Section titled “timePickerSlot”● timePickerSlot: HTMLElement
Protected Accessors
Section titled “Protected Accessors”calendar
Section titled “calendar”● calendar: Calendar | null
= null
calendarSlot
Section titled “calendarSlot”● calendarSlot: HTMLElement
currentDateTime
Section titled “currentDateTime”● currentDateTime: Date
nowButton
Section titled “nowButton”● nowButton: HTMLElement
options
Section titled “options”● options: DateTimePickerOptions
● slot?: HTMLElement
submitButton
Section titled “submitButton”● submitButton: HTMLElement
timePicker
Section titled “timePicker”● timePicker: TimePicker | null
= null
timePickerSlot
Section titled “timePickerSlot”● timePickerSlot: HTMLElement
Public Methods
Section titled “Public Methods”▸ apply(date: Date
): void
Parameters:
Section titled “Parameters:”- date:
Date
Returns void
cancel
Section titled “cancel”▸ cancel(): void
Returns void
getDateTime
Section titled “getDateTime”▸ getDateTime(): Date
Returns Date
setDateTime
Section titled “setDateTime”▸ setDateTime(dateTime: Date
): void
Parameters:
Section titled “Parameters:”- dateTime:
Date
Returns void
▸ show(achor?: HTMLElement
): void
Parameters:
Section titled “Parameters:”- achor:
HTMLElement
, Optional
Returns void
Protected Methods
Section titled “Protected Methods”createCalendar
Section titled “createCalendar”▸ createCalendar(options: CalendarOptions): DefaultCalendar
Parameters:
Section titled “Parameters:”- options: CalendarOptions
Returns DefaultCalendar
createTimePicker
Section titled “createTimePicker”▸ createTimePicker(options: TimePickerOptions): DefaultTimePicker
Parameters:
Section titled “Parameters:”- options: TimePickerOptions
Returns DefaultTimePicker
dateTimeChanged
Section titled “dateTimeChanged”▸ dateTimeChanged(): void
Returns void
destroy
Section titled “destroy”▸ destroy(): void
Returns void
render
Section titled “render”▸ render(): void
Returns void
renderButtons
Section titled “renderButtons”▸ renderButtons(): void
Returns void