DateChooser parameters

You can set the following authoring parameters for each DateChooser component instance in the Property inspector or in the Component inspector (Window > Component Inspector menu option):

dayNames sets the names of the days of the week. The value is an array and the default value is ["S", "M", "T", "W", "T", "F", "S"].

disabledDays indicates the disabled days of the week. This parameter is an array that can have up to seven values. The default value is [] (an empty array).

firstDayOfWeek indicates which day of the week (0-6, with 0 being the first element of the dayNames array) is displayed in the first column of the date chooser. This property changes the display order of the day columns.

monthNames sets the month names that are displayed in the heading row of the calendar. The value is an array and the default value is ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October","November", "December"].

showToday indicates whether to highlight today's date. The default value is true.

You can set the following additional parameters for each DateChooser component instance in the Component inspector (Window > Component Inspector):

enabled is a Boolean value that indicates whether the component can receive focus and input. The default value is true.

visible is a Boolean value that indicates whether the object is visible (true) or not (false). The default value is true.

NOTE

The minHeight and minWidth properties are used by internal sizing routines. They are defined in UIObject, and are overridden by different components as needed. These properties can be used if you make a custom layout manager for your application. Otherwise, setting these properties in the Component inspector will have no visible effect.

You can write ActionScript to control these and additional options for the DateChooser component using its properties, methods, and events. For more information, see DateChooser class.