Class Index | File Index

Classes


Class SweetDevRia.DateRangeCalendar

RIA Date Range Calendar implementation.
Defined in: DateRangeCalendar.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
SweetDevRia.DateRangeCalendar(id, containerId, monthyear, selected)
Field Summary
Field Attributes Field Name and Description
 
Initial render stack.
Method Summary
Method Attributes Method Name and Description
 
Add renderer to calendar and render it.
 
doSelectCellIfRange(Function, First)
Generic method used for date or cell selection.
 
Override SweetDevRia.SimpleCalendar.prototype.goOnToday in order to clear rendering on calendar.
 
highlightCell(Working, Cell)
This function add a CSS class on a HTMLTableCellElement.
 
This function is called when 2 dates are selected.
 
Override YAHOO.widget.Calendar_Core.prototype.onDeselect in order to clear rendering on calendar.
 
Override SweetDevRia.SimpleCalendar.prototype.resetCalendar in order to clear rendering on calendar.
 
select(date)
Override SweetDevRia.BaseCalendar.prototype.selectCell in order to manage 2 selections.
 
selectCell(cellIndex)
Override SweetDevRia.BaseCalendar.prototype.selectCell in order to manage 2 selections.
 
This function set the new date on calendar and fills html inputs fields.
 
setValue(a, a)
This function set a new date value from a date If it's correct, date is set on the Calendar, if not, an error class is returned
Class Detail
SweetDevRia.DateRangeCalendar(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
oldRenderStack
Initial render stack.
Method Detail
addPeriodRenderer(Date)
Add renderer to calendar and render it.
Parameters:
{String} Date
List. See YAHOO.widget.Calendar_Core.prototype.addRenderer#sDates

doSelectCellIfRange(Function, First)
Generic method used for date or cell selection.
Parameters:
{Function} Function
to call.
{arg} First
and single function's argument.

goOnToday()
Override SweetDevRia.SimpleCalendar.prototype.goOnToday in order to clear rendering on calendar.

highlightCell(Working, Cell)
This function add a CSS class on a HTMLTableCellElement.
Parameters:
{Date} Working
date.
{HTMLTableCellElement} Cell
to highlight.

highlightPeriod()
This function is called when 2 dates are selected. It add a rendering function on each cells contained between selected dates. The rendering function add a CSS style on each cell.

onDeselect()
Override YAHOO.widget.Calendar_Core.prototype.onDeselect in order to clear rendering on calendar.

resetCalendar()
Override SweetDevRia.SimpleCalendar.prototype.resetCalendar in order to clear rendering on calendar.

{Date[]} select(date)
Override SweetDevRia.BaseCalendar.prototype.selectCell in order to manage 2 selections.
Parameters:
{String/Date/Date[]} date
The date string of dates to select in the current calendar. Valid formats are individual date(s) (12/24/2005,12/26/2005) or date range(s) (12/24/2005-1/1/2006). Multiple comma-delimited dates can also be passed to this method (12/24/2005,12/11/2005-12/13/2005). This method can also take a JavaScript Date object or an array of Date objects.
Returns:
Array of JavaScript Date objects representing all individual dates that are currently selected.

{Date[]} selectCell(cellIndex)
Override SweetDevRia.BaseCalendar.prototype.selectCell in order to manage 2 selections.
Parameters:
{int} cellIndex
The index of the cell to select in the current calendar.
Returns:
Array of JavaScript Date objects representing all individual dates that are currently selected.

setNewDateAndFillDateInFields(the)
This function set the new date on calendar and fills html inputs fields.
Parameters:
{Date/Date[]} the
new date to set.

setValue(a, a)
This function set a new date value from a date If it's correct, date is set on the Calendar, if not, an error class is returned
Parameters:
{Sting} a
String representing the date to select
{Date/Date[]} a
date representing the selection

Documentation generated by JsDoc Toolkit 2.0.0 on Thu Dec 02 2010 15:18:54 GMT+0100 (CET)