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

NameTypeOptionalDefaultDescripton
oDateDateOptional date

Properties

NameTypegetsetDescripton
buttonBiButtoncheckedThe drop down button inside the component
dateFormatBiDateFormatcheckedcheckedThe object describing how to parse and format dates
dropDownVisibleBooleancheckedcheckedWhether the calendar part is visible or not
invalidMessageStringcheckedcheckedA string that can be used to describe why the input is invalid
isValidBooleancheckedThis will call the validator (if any) and return true if the text is valid
maximumDatecheckedcheckedGetter for the maximum selectable date.
minimumDatecheckedcheckedGetter for the minimum selectable date.
popupBiPopupcheckedThe popup containing the calendar
selectedDateDatecheckedcheckedThe selected date
textStringcheckedcheckedThe 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.
textFieldBiTextFieldcheckedThe text field inside the component
validatorFunctioncheckedcheckedA function that is used to validate the text

Methods

None.

Events

NameTypeBubblesDescripton
actionBiEventThis is fired when the user clicks to select a date or when the enter key is pressed
changeBiEventThis is fired when the selecetd date changes
hideBiEventThis is fired when the calendar is hidden.
showBiEventThis is fired when the calendar is shown.
textchangedBiEventThis is fired when the text in the text field is changed

Static Methods

NameDescription
createRegExpValidatorThis 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

NameTypeOptionalDefaultDescripton
oRegExpRegExpA regular expression object

Return Type

Function