[Elements] are optional
Defined in
Component/DatePicker/1.1/lib.js
Class SAPO.Component.DatePicker
class
SAPO.Component.DatePicker
Inclusion link: http://js.sapo.pt/SAPO/Component/DatePicker/1.1/
Sample: http://js.sapo.pt/SAPO/Component/DatePicker/sample/
Constructor Summary
DatePicker
(Object
options)
requires SAPO.Dom.Element
requires SAPO.Dom.Event
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
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 -
[ Object month ]- Array of month names. Defaults to portuguese month names. -
[ Object wDay ]- Array of weekdays. Defaults to portuguese month names.