DefaultDateTimePicker class

Extends

DateTimePicker

Index

Constructors

Protected Properties

Public Methods

Protected Methods

Constructors


constructor

⊕ new DefaultDateTimePicker(options?: DateTimePickerOptions): DefaultDateTimePicker

Parameters:


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


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(achor?: HTMLElement): void

Parameters:

  • achor: HTMLElement, Optional

Returns void


Protected Methods


createCalendar

▸ createCalendar(options: CalendarOptions): DefaultCalendar

Parameters:

Returns DefaultCalendar


createTimePicker

▸ createTimePicker(options: TimePickerOptions): DefaultTimePicker

Parameters:

Returns DefaultTimePicker


dateTimeChanged

▸ dateTimeChanged(): void

Returns void


destroy

▸ destroy(): void

Returns void


render

▸ render(): void

Returns void


renderButtons

▸ renderButtons(): void

Returns void