| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
var calendar = APE.widget.Calendar.getById( "cal" ); calendar.create();
| Field Summary | |
object
|
_isHidden
|
[number]
|
days
Days in months. |
boolean
|
hideOnSelect
set to true to hide the calendar when a
date is selected.
|
String
|
id
the id of the Calendar instance (also the
same as the html input element.
|
| Constructor Summary | |
|---|---|
APE.widget.Calendar(id)
|
|
| Method Summary | |
|---|---|
|
_hide(e)
Hides the calendar. |
|
create()
creates the HTML used for the calendar. |
|
formatDate()
formats the date in default of MM dd, yyyy. |
Date
|
getDate()
|
|
initEvents()
This can generally be ignored. |
|
position(calStyle)
Positions the calendar just below the input using APE.dom.getOffsetCoords. |
|
returnFalse(e)
undocumented |
|
setDate(date)
Sets the internal date object represented by the calendar. |
|
setDateOfMonth(dateOfMonth)
Sets the date of the month. |
|
show(calStyle)
Shows the calendar by setting visibility to 'visible'. |
| Event Summary | |
|---|---|
void
|
onhide()
fires immediately after visibility has been set to "hidden" in hide(); |
void
|
onselect()
a date was selected. |
void
|
onshow()
fires immediately after visibility has been set to "visible" in show(); |
| Field Detail |
|---|
object _isHidden
[number] days
boolean hideOnSelect
true to hide the calendar when a
date is selected.
String id
id of the Calendar instance (also the
same as the html input element.
| Constructor Detail |
|---|
APE.widget.Calendar(id)
String id - the id of the input element.
| Method Detail |
|---|
_hide(e)
Event e - the DOM Event the triggered the action.
create()
formatDate()
this.selectedDate.
Date getDate()
Date a copy of the internal Date
representing calendar's currently selected date.
initEvents()
position(calStyle)
CSSStyleDeclaration calStyle - the caledar element's style.
returnFalse(e)
e
setDate(date)
date
setDateOfMonth(dateOfMonth)
dateOfMonth
show(calStyle)
CSSStyleDeclaration calStyle - the caledar element's style.
| Event Detail |
|---|
onhide()
onselect()
onshow()