Class DHTMLSuite.calendarModel
Object
|
+--DHTMLSuite.calendarModel
- class
DHTMLSuite.calendarModel
Purpose of class: Data source for a calendar.
Defined in dhtml-suite-for-applications.js
Author: Alf Magne Kalleland(www.dhtmlgoodies.com)
Version: 1.0
invalidDateRange
Object invalidDateRange
languageCode
Object languageCode
weekStartsOnMonday
Object weekStartsOnMonday
DHTMLSuite.calendarModel
DHTMLSuite.calendarModel(inputArray)
Author: Alf Magne Kalleland(www.dhtmlgoodies.com)
Version: 1.0
addInvalidDateRange
void addInvalidDateRange(fromDateAsArray,toDateAsArray)
Automatically set start date from input field
Parameters:
Object
- inputReference - Reference to form input, i.e. id of form element, or a reference to the form element it's self
String
- dateFormat - Format of value(DHTMLSuite.calendarModel.prototype.examples = dd;.mm.yyyy, yyyy.mm.dd, yyyy-mm-dd HH:
isDateWithinValidRange
Object isDateWithinValidRange(inputDate)
Return true if given date is within valid date range.
Parameters:
Array
- inputDate - Associative array representing a date, keys in DHTMLSuite.calendarModel.prototype.array = year;month and day
setCallbackFunctionOnMonthChange
void setCallbackFunctionOnMonthChange(functionName)
Automatically set start date from input field
Parameters:
String
- functionName - Name of function to call when someone clicks on a date in the calendar. Argument to this function will be an array containing year,month,day,hour and minute
setInitialDateFromInput
void setInitialDateFromInput(inputReference,format)
Automatically set start date from input field
Parameters:
Object
- inputReference - Reference to form input, i.e. id of form element, or a reference to the form element it's self
String
- dateFormat - Format of value(DHTMLSuite.calendarModel.prototype.examples = dd;.mm.yyyy, yyyy.mm.dd, yyyy-mm-dd HH:
setLanguageCode
void setLanguageCode(languageCode)
setWeekStartsOnMonday
void setWeekStartsOnMonday(weekStartsOnMonday)
Documentation generated by
JSDoc on Mon Oct 8 10:17:27 2007