Class APE.widget.Calendar

Defined in Calendar.js
  • author: Garrett Smith
  • example:
    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

    _isHidden

    object _isHidden

    days

    [number] days

    hideOnSelect

    boolean hideOnSelect

    id

    String id
    Constructor Detail

    APE.widget.Calendar

    APE.widget.Calendar(id)

    Method Detail

    _hide

    _hide(e)

    create

    create()

    formatDate

    formatDate()

    getDate

    Date getDate()

    initEvents

    initEvents()

    position

    position(calStyle)

    returnFalse

    returnFalse(e)

    setDate

    setDate(date)

    setDateOfMonth

    setDateOfMonth(dateOfMonth)

    show

    show(calStyle)

    Event Detail

    onhide

    onhide()

    onselect

    onselect()

    onshow

    onshow()

    Documentation generated by JsDoc Toolkit 1.4.0 on Sun Aug 17 2008 17:08:27 GMT-0700 (PDT)