[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/lib/yuilib/2in3/2.9.0/build/yui2-calendar/ -> yui2-calendar.js (summary)

Config is a utility used within an Object to allow the implementer to maintain a list of local configuration properties and listen for changes to those properties dynamically using CustomEvent. The initial values are also maintained so that the configuration can be reset at any given point to its initial state.

File Size: 7396 lines (271 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 4 functions

  Calendar()
  CalendarGroup()
  yearUpdateHandler()
  monthUpdateHandler()

Functions
Functions that are not part of a class:

Calendar(id, containerId, config)   X-Ref
Calendar is the base class for the Calendar widget. In its most basic
implementation, it has the ability to render a calendar widget on the page
that can be manipulated to select a single date, move back and forth between
months and years.
<p>To construct the placeholder for the calendar widget, the code is as
follows:
<xmp>
<div id="calContainer"></div>
</xmp>
</p>
<p>
<strong>NOTE: As of 2.4.0, the constructor's ID argument is optional.</strong>
The Calendar can be constructed by simply providing a container ID string,
or a reference to a container DIV HTMLElement (the element needs to exist
in the document).

E.g.:
<xmp>
var c = new YAHOO.widget.Calendar("calContainer", configOptions);
</xmp>
or:
<xmp>
var containerDiv = YAHOO.util.Dom.get("calContainer");
var c = new YAHOO.widget.Calendar(containerDiv, configOptions);
</xmp>
</p>
<p>
If not provided, the ID will be generated from the container DIV ID by adding an "_t" suffix.
For example if an ID is not provided, and the container's ID is "calContainer", the Calendar's ID will be set to "calContainer_t".
</p>

param: {String} id optional The id of the table element that will represent the Calendar widget. As of 2.4.0, this argument is optional.
param: {String | HTMLElement} container The id of the container div element that will wrap the Calendar table, or a reference to a DIV element which exists in the document.
param: {Object} config optional The configuration object containing the initial configuration values for the Calendar.

CalendarGroup(id, containerId, config)   X-Ref
YAHOO.widget.CalendarGroup is a special container class for YAHOO.widget.Calendar. This class facilitates
the ability to have multi-page calendar views that share a single dataset and are
dependent on each other.

The calendar group instance will refer to each of its elements using a 0-based index.
For example, to construct the placeholder for a calendar group widget with id "cal1" and
containerId of "cal1Container", the markup would be as follows:
<xmp>
<div id="cal1Container_0"></div>
<div id="cal1Container_1"></div>
</xmp>
The tables for the calendars ("cal1_0" and "cal1_1") will be inserted into those containers.

<p>
<strong>NOTE: As of 2.4.0, the constructor's ID argument is optional.</strong>
The CalendarGroup can be constructed by simply providing a container ID string,
or a reference to a container DIV HTMLElement (the element needs to exist
in the document).

E.g.:
<xmp>
var c = new YAHOO.widget.CalendarGroup("calContainer", configOptions);
</xmp>
or:
<xmp>
var containerDiv = YAHOO.util.Dom.get("calContainer");
var c = new YAHOO.widget.CalendarGroup(containerDiv, configOptions);
</xmp>
</p>
<p>
If not provided, the ID will be generated from the container DIV ID by adding an "_t" suffix.
For example if an ID is not provided, and the container's ID is "calContainer", the CalendarGroup's ID will be set to "calContainer_t".
</p>

param: {String} id optional The id of the table element that will represent the CalendarGroup widget. As of 2.4.0, this argument is optional.
param: {String | HTMLElement} container The id of the container div element that will wrap the CalendarGroup table, or a reference to a DIV element which exists in the document.
param: {Object} config optional The configuration object containing the initial configuration values for the CalendarGroup.

yearUpdateHandler()   X-Ref
No description

monthUpdateHandler()   X-Ref
No description



Generated: Thu Aug 11 10:00:09 2016 Cross-referenced by PHPXref 0.7.1