DateTimePicker class

Index

Constructors

Protected Properties

Public Methods

Protected Methods

Constructors


constructor

⊕ new DateTimePicker(options?: DateTimePickerOptions): DateTimePicker

Parameters:


Protected Properties


calendar

● calendar: Calendar | null = null


currentDateTime

● currentDateTime: Date


options

● options: DateTimePickerOptions


slot

● slot?: HTMLElement


timePicker

● timePicker: TimePicker | null = null


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): Calendar

Parameters:

Returns Calendar


createTimePicker

▸ createTimePicker(options: TimePickerOptions): TimePicker

Parameters:

Returns TimePicker


dateTimeChanged

▸ dateTimeChanged(): void

Returns void


destroy

▸ destroy(): void

Returns void


render

▸ render(): void

Returns void