API/libsapojs/SAPO/Component/DatePicker

[Elements] are optional

Class SAPO.Component.DatePicker


class SAPO.Component.DatePicker
Defined in Component/DatePicker/1.1/lib.js

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.