Show:

A base class for DatePickerPopover.

Constructor

A.DatePickerPopover

(
  • config
)

Parameters:

  • config Object

    Object literal specifying widget configuration properties.

Methods

_isActiveInputFocused

() Boolean protected

Checks if the active input is focused.

Returns:

Boolean:

_onPopoverClickOutside

(
  • event
)
protected

Fires when there's a click outside of the Popover.

Parameters:

  • event Object

_setPopover

(
  • val
)
protected

Sets the popover value by merging its object with another properties.

Parameters:

  • val Object

alignTo

(
  • node
)

Sets the Popover alignment.

Parameters:

  • node Object

getPopover

() Popover

Returns an existent Popover instance or creates a new one if it doesn't exists.

Returns:

Popover:

hide

()

Hides the Popover.

show

()

Shows the Popover.

Properties

ATTRS

Object static

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

Attributes

autoHide

Boolean

Sets the initial visibility.

Default: true

popover

Stores the configuration of the Popover instance.

Default: {}

popoverCssClass

String

Defines the CSS classname of the Popover.

Default: A.getClassName('datepicker-popover')