Datepicker

Datepicker

new Datepicker(element, options)

Source:
Parameters:
NameTypeDescription
elementHTMLElement

DOM element for component instantiation and scope

optionsObject
Properties
NameTypeDescription
datepickerFormatString

Format for dates

Classes

Datepicker

Methods

destroy()

Description:
  • Destroy component.

Source:

init()

Description:
  • Initialise component.

Source:

(static) autoInit(root) → {Datepicker}

Source:
Parameters:
NameTypeDescription
rootHTMLElement

DOM element for component instantiation and scope

Returns:

An instance of Datepicker.

Type
Datepicker