Class: DatepickerPolyfill

Drupal.DatepickerPolyfill()

Provides overridable utility functions for the datepicker polyfill.

Constructor

new DatepickerPolyfill()

Source:

Methods

(static) attachDescription(element, help, id)

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.

Source:

(static) descriptionWrapperElement(id) → {HTMLElement}

Creates a description wrapper element.

Parameters:
Name Type Description
id string

The id of the input being described.

Source:
Returns:

The description wrapper DOM element.

Type
HTMLElement