class SAPO.Component.DatePicker
See also:
SAPO.Ink.DatePicker CHECK OUT SAPO.Ink.DatePicker, which offers a more updated component which the same purpose
Version:
2.1
Deprecated:
Defined in Component/DatePicker/2.1/lib.js

Constructor Summary
DatePicker (Object options)

requires SAPO.Dom.Element

requires SAPO.Dom.Event

requires SAPO.Dom.Css

Provides an easy to use datepicker for your form fields

Constructor Details

constructor DatePicker

DatePicker(Object options)

requires SAPO.Dom.Element

requires SAPO.Dom.Event

requires SAPO.Dom.Css

Provides an easy to use datepicker for your form fields

Parameters:
options Options for the datepicker
  • string elementId - Render the datepicker when clicking this target element
  • [ string instance ] - Unique id for the datepicker
  • [ string format ] - Date format string
  • [ string cssClass ] - CSS class to be applied to the datepicker
  • [ boolean onFocus ] - If the datepicker should open when the target element is focused
  • [ function onSetDate ] - CallBack to execute when set date
  • [ function startDate ] - Date to define init month. Must be in yyyy-mm-dd format
  • [ Object month ] - Array of month names. Defaults to portuguese month names.
  • [ Object wDay ] - Array of weekdays. Defaults to portuguese month names.