Extends
Members
(static) selector :string
Type:
- string
displayedValue :string
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()
_createFakeDateInput(format) → {jQuery}
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)
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)
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)
Reset button handler
Parameters:
Name | Type | Description |
---|---|---|
$fakeDateI |
jQuery | Fake date input element |
_toActualDate(dateopt) → {string}
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
date |
string |
<optional> |
date |
Returns:
the actual date
- Type
- string
_toDisplayDate(dateopt) → {string}
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,