Class YAHOO.widget.Calendar2up
Calendar2up is the default implementation of the CalendarGroup base class, when used
in a 2-up view. This class is the UED-approved version of the 2-up calendar selector widget. For all documentation
on the implemented methods listed here, see the documentation for CalendarGroup.
Defined in: calendar.js.
Constructor Attributes | Constructor Name and Description |
---|---|
YAHOO.widget.Calendar2up(id, containerId, monthyear, selected)
|
Field Attributes | Field Name and Description |
---|---|
<static> |
YAHOO.widget.Calendar2up.CSS_2UPCLOSE
CSS class representing the close icon for the 2-up calendar
|
<static> |
YAHOO.widget.Calendar2up.CSS_2UPCONTAINER
CSS class representing the container for the 2-up calendar
|
<static> |
YAHOO.widget.Calendar2up.CSS_2UPTITLE
CSS class representing the title for the 2-up calendar
|
<static> |
YAHOO.widget.Calendar2up.CSS_2UPWRAPPER
CSS class representing the wrapper for the 2-up calendar
|
<static> |
YAHOO.widget.Calendar2up.CSS_CONTAINER
CSS class representing the container for the calendar
|
Method Attributes | Method Name and Description |
---|---|
buildWrapper(containerId)
Builds the wrapper container for the 2-up calendar.
|
|
constructChild(id, containerId, monthyear, selected)
Implementation of CalendarGroup.constructChild that ensures that child calendars of
Calendar2up will be of type Calendar2up_Cal.
|
|
hide(e, cal)
Hides the 2-up calendar's outer container from view.
|
|
render()
Renders the 2-up calendar.
|
|
Renders a footer for the 2-up calendar container.
|
|
Renders the header located at the top of the container for the 2-up calendar.
|
Class Detail
YAHOO.widget.Calendar2up(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"
Field Detail
<static>
{string}
YAHOO.widget.Calendar2up.CSS_2UPCLOSE
CSS class representing the close icon for the 2-up calendar
<static>
{string}
YAHOO.widget.Calendar2up.CSS_2UPCONTAINER
CSS class representing the container for the 2-up calendar
<static>
{string}
YAHOO.widget.Calendar2up.CSS_2UPTITLE
CSS class representing the title for the 2-up calendar
<static>
{string}
YAHOO.widget.Calendar2up.CSS_2UPWRAPPER
CSS class representing the wrapper for the 2-up calendar
<static>
{string}
YAHOO.widget.Calendar2up.CSS_CONTAINER
CSS class representing the container for the calendar
Method Detail
buildWrapper(containerId)
Builds the wrapper container for the 2-up calendar.
- Parameters:
- {String} containerId
- The id of the outer container element.
constructChild(id, containerId, monthyear, selected)
Implementation of CalendarGroup.constructChild that ensures that child calendars of
Calendar2up will be of type Calendar2up_Cal.
- Parameters:
- id
- containerId
- monthyear
- selected
hide(e, cal)
Hides the 2-up calendar's outer container from view.
- Parameters:
- e
- cal
render()
Renders the 2-up calendar.
renderFooter()
Renders a footer for the 2-up calendar container. By default, this method is
unimplemented.
renderHeader()
Renders the header located at the top of the container for the 2-up calendar.