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