new Datepicker(element, options)
- Source:
Parameters:
| Name | Type | Description | ||||||
|---|---|---|---|---|---|---|---|---|
element |
HTMLElement | DOM element for component instantiation and scope |
||||||
options |
Object |
Properties
|
Classes
Methods
destroy()
- Description:
Destroy component.
- Source:
handleOpen()
- Description:
Handle datepicker open event.
- Source:
init()
- Description:
Initialise component.
- Source:
normalizeDate()
- Description:
Normalize the default value when it contains extra info.
- Source:
updateConfiguration()
- Description:
Update picker configuration based on current state.
- Source:
(static) autoInit(root) → {Datepicker}
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
root |
HTMLElement | DOM element for component instantiation and scope |
Returns:
An instance of Datepicker.
- Type
- Datepicker