DefaultDateTimePicker class

Extends

DateTimePicker

Index

Constructors

Protected Properties

Protected Accessors

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


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:

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