Class YAHOO.widget.Calendar
Calendar is the default implementation of the YAHOO.widget.Calendar_Core base class.
This class is the UED-approved version of the calendar selector widget. For all documentation
on the implemented methods listed here, see the documentation for YAHOO.widget.Calendar_Core.
Defined in: calendar.js.
Constructor Attributes | Constructor Name and Description |
---|---|
YAHOO.widget.Calendar(id, containerId, monthyear, selected)
|
Class Detail
YAHOO.widget.Calendar(id, containerId, monthyear, selected)
- Parameters:
- {String} id
- The id of the table element that will represent the calendar widget
- {String} containerId
- The id of the container element that will contain the calendar table
- {String} monthyear
- The month/year string used to set the current calendar page
- {String} selected
- A string of date values formatted using the date parser. The built-in default date format is MM/DD/YYYY. Ranges are defined using MM/DD/YYYY-MM/DD/YYYY. Month/day combinations are defined using MM/DD. Any combination of these can be combined by delimiting the string with commas. Example: "12/24/2005,12/25,1/18/2006-1/21/2006"