DatepickerPolyfill

Drupal. DatepickerPolyfill

Provides overridable utility functions for the datepicker polyfill.

Constructor

new DatepickerPolyfill()

Source:

Methods

(static) attachDescription(element, help, id)

Source:
Adds help text to polyfilled date/time elements. The help text is added to existing description elements when present. If a description element is not present, one is created.
Parameters:
Name Type Description
element HTMLElement The input element.
help string The help text.
id string The input id.

(static) descriptionWrapperElement(id) → {HTMLElement}

Source:
Creates a description wrapper element.
Parameters:
Name Type Description
id string The id of the input being described.
Returns:
The description wrapper DOM element.
Type
HTMLElement