Show:

A base class for DatePickerDelegate.

Constructor

A.DatePickerDelegate

(
  • config
)

Parameters:

  • config Object

    Object literal specifying widget configuration properties.

Methods

_afterActiveInputChange

(
  • event
)
protected

Fires when the 'activeInput' attribute changes. The keydown listener is removed from the old active input and is attached to the new one.

Parameters:

_defSelectionChangeFn

(
  • event
)
protected

Default behavior for selection change.

Parameters:

  • event Object

_formatDate

(
  • event
)
Date protected

Formats a date according to a mask.

Parameters:

  • event Object

Returns:

Date:

_handleKeydownEvent

(
  • event
)
protected

Handles keydown events

Parameters:

  • event Object

_handleTabKeyEvent

() protected

Handles tab key events

_onceUserInteraction

(
  • event
)
protected

Fires once user interacts.

Parameters:

  • event Object

_onceUserInteractionRelease

(
  • event
)
protected

Fires once user interaction releases.

Parameters:

  • event Object

_onUserInteractionRelease

(
  • event
)
protected

Fires when user interaction releases.

Parameters:

  • event Object

_valueExtractorFn

() protected

Extracts the input value.

_valueFormatterFn

() Function protected

Formats a date value.

Returns:

Function:

bindDelegateUI

() protected

Bind the events on the DatePickerDelegate UI. Lifecycle.

destroy

() protected

Destructor logic implementation for the DatePickerDelegate class.

getParsedDatesFromInputValue

(
  • opt_value
)
Object | null

Gets parsed dates from input value.

Parameters:

  • opt_value Object

Returns:

Object | null:

getSelectedDates

(
  • node
)
Object | null

Gets the selected dates.

Parameters:

  • node Object

Returns:

Object | null:

initializer

() protected

Construction logic executed during DatePickerDelegate instantiation. Lifecycle.

useInputNode

()

Method not implemented.

useInputNodeOnce

(
  • node
)

Triggers useInputNode method once.

Parameters:

  • node Object

Properties

ATTRS

Object static

Static property used to define the default attribute configuration for the DatePickerDelegate.

Attributes

activeInput

The active input element that holds the calendar instance.

container

Contains an element.

dateSeparator

String

Character that separate dates.

Default: ' \u2014 '

mask

String

Defines the date format.

Default: '%m/%d/%Y'

trigger

String

Stores a trigger.

valueExtractor

Function

Extracts a value from a function.

valueFormatter

Function

Formats a value from a function.

Events

enterKey

Fired when then enter key is pressed on an input node.