Show:

A base class for DatePickerNativeBase.

Constructor

A.DatePickerNativeBase

(
  • config
)

Parameters:

  • config Object

    Object literal specifying widget configuration properties.

Methods

_addFourDigitsYearPadding

(
  • text
)
String protected

Adds four digits as a padding for the year value.

Parameters:

  • text Object

Returns:

String:

The result of the string manipulation.

_afterNativeSelectionChange

(
  • event
)
protected

Fires after a selection change in the native calendar.

Parameters:

  • event Object

_fireSelectionChange

() protected

Fires a selection change.

_formatDate

(
  • date
)
Date protected

Formats native date.

Parameters:

  • date Object

Returns:

Date:

_isTypeSupported

(
  • type
)
Boolean protected

Checks if type attribute is supported.

Parameters:

  • type Object

Returns:

Boolean:

_parseDateFromString

(
  • text
)
Date protected

Parses a date from a string.

Parameters:

  • text Object

Returns:

Date:

bindNativeUI

()

Bind the events on the DatePickerNativeBase UI. Lifecycle.

clearSelection

()

Clears selected dates in the native calendar.

deselectDates

()

Deselects dates in the native calendar.

hide

()

Blurs native calendar.

initializer

() protected

Construction logic executed during DatePickerNativeBase instantiation. Lifecycle.

selectDates

(
  • dates
)

Selects a date in the native calendar.

Parameters:

  • dates Object

show

()

Focus native calendar.

useInputNode

(
  • node
)

Renders the widget in an <input> node.

Parameters:

  • node Object

Properties

ATTRS

Object static

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

Attributes

nativeMask

String

Defines the native date mask.

Default: '%Y-%m-%d'

nativeType

String

Defines the type attribute in an HTML element.

Default: 'date'