BiDatePicker
This component provides a text field where one can write a date and a popup containing a BiCalendar that allows one to pick a date.
This class extends BiComponent and therefore all methods and fields available for BiComponent are also available for BiDatePicker .
Constructor
new BiDatePicker ( oDate )
Parameters
| Name | Type | Optional | Default | Descripton |
oDate | Date | Optional date |
Properties
| Name | Type | get | set | Descripton |
button | | ![]() | The drop down button inside the component | |
dateFormat | | ![]() | ![]() | The object describing how to parse and format dates |
dropDownVisible | Boolean | ![]() | ![]() | Whether the calendar part is visible or not |
invalidMessage | String | ![]() | ![]() | A string that can be used to describe why the input is invalid |
isValid | Boolean | ![]() | This will call the validator (if any) and return true if the text is valid | |
maximum | Date | ![]() | ![]() | Getter for the maximum selectable date. |
minimum | Date | ![]() | ![]() | Getter for the minimum selectable date. |
popup | | ![]() | The popup containing the calendar | |
selectedDate | Date | ![]() | ![]() | The selected date |
text | String | ![]() | ![]() | The text shown in the text field part of the date picker. Setting this causes the text to be parsed and this might trigger a change event. |
textField | | ![]() | The text field inside the component | |
validator | Function | ![]() | ![]() | A function that is used to validate the text |
Methods
None.
Events
| Name | Type | Bubbles | Descripton |
action | | This is fired when the user clicks to select a date or when the enter key is pressed | |
change | | This is fired when the selecetd date changes | |
hide | | This is fired when the calendar is hidden. | |
show | | This is fired when the calendar is shown. | |
textchanged | | This is fired when the text in the text field is changed |
Static Methods
| Name | Description |
createRegExpValidator | This method is useful when assigning regular expressions as validation functions. |
Static Fields
None.
Remarks
None.
Static Method Details
createRegExpValidator
This method is useful when assigning regular expressions as validation functions.
Syntax
BiDatePicker . createRegExpValidator ( oRegExp ) Parameters
| Name | Type | Optional | Default | Descripton |
oRegExp | RegExp | A regular expression object |
Return Type
Function
