DateInput Class

Form input used to specify a date. The input consists of a text field and a button. When the user clicks on the button, a javaxt.dhtml.DatePicker will appear below the input.

Constructors

DateInput( parent, config )
Used to instantiate this class
parentDOM element in which to render this component
configConfiguration settings (optional). See config options for more information.

Config Options

date
Initial date/value for the input. Supports both strings and dates.
showMenuOnFocus
If true, the calendar menu will appear whenever the text field has focus (e.g. mouse click). Default is false.
style
Style for individual elements within the component. Note that you can provide CSS class names instead of individual style definitions.
formatDate
Function used to format date for display. Returns "M/D/YYYY" by default.

Events

onChange( currDate, prevDate )

Public Methods

isDisabled( )
Returns true if the compnentent has been disabled.
enable( )
Used to enable the input allowing users to interact with the component.
disable( )
Used to disable the input preventing users from interacting with the component.
showMenu( )
hideMenu( )
setValue( date, silent )
getValue( )
setDate( date, silent )
getDate( )