DatepickerExtended

DatepickerExtended

Extends eternicode's bootstrap-datepicker without changing the original. https://github.com/eternicode/bootstrap-datepicker

Constructor

new DatepickerExtended()

Source:

Extends

Members

(static) selector :string

Source:
Type:
  • string

displayedValue :string

Source:
Type:
  • string

(readonly) downloadButtonHtml :Element

Source:
Inherited From:

Returns a HTML document fragment for a download button.

Type:
  • Element

(readonly) originalInputValue :*

Source:
Overrides:

Obtains the value from the original form control the widget is instantiated on. This form control is often hidden by the widget.

Type:
  • *

(readonly) props :object

Source:
Inherited From:

Returns widget properties. May need to be extended.

Type:
  • object

(readonly) resetButtonHtml :Element

Source:
Inherited From:

Returns a HTML document fragment for a reset button.

Type:
  • Element

value :string

Source:
Overrides:
Type:
  • string

Methods

(static) condition()

Source:

_createFakeDateInput(format) → {jQuery}

Source:

Creates fake date input elements

Parameters:
Name Type Description
format string

The date format

Returns:

The jQuery-wrapped fake date input element

Type
jQuery

_getProps() → {object}

Source:
Inherited From:

Not meant to be overridden, but could be. Recommend to extend get props() instead.

Returns:

props object

Type
object

_init()

Source:
Overrides:

Meant to be overridden, but automatically called.

_setChangeHandler($fakeDateI)

Source:

Copy manual changes that were not detected by bootstrap-datepicker (one without pressing Enter) to original date input field

Parameters:
Name Type Description
$fakeDateI jQuery

Fake date input element

_setFocusHandler($fakeDateI)

Source:

Handler for focus events. These events on the original input are used to check whether to display the 'required' message

Parameters:
Name Type Description
$fakeDateI jQuery

Fake date input element

_setResetHandler($fakeDateI)

Source:

Reset button handler

Parameters:
Name Type Description
$fakeDateI jQuery

Fake date input element

_toActualDate(dateopt) → {string}

Source:
Parameters:
Name Type Attributes Description
date string <optional>

date

Returns:

the actual date

Type
string

_toDisplayDate(dateopt) → {string}

Source:
Parameters:
Name Type Attributes Description
date string <optional>

date

Returns:

the display date

Type
string

disable()

Source:
Overrides:

Disallow user input into widget by making it readonly.

enable()

Source:
Overrides:

Performs opposite action of disable() function.

update()

Source:
Overrides:

Updates form-defined language strings,