Package: | Ext.ensible.cal |
Defined In: | DateRangeField.js |
Class: | DateRangeField |
Extends: | Object |
A combination field that includes start and end dates and times, as well as an optional all-day checkbox.
Config Options | Defined By | |
---|---|---|
allDayText : String The text to display as the label for the all day checkbox (defaults to 'All day') | DateRangeField | |
dateFormat : String The date display format used by the date fields (defaults to 'n/j/Y') | DateRangeField | |
singleLine : String/Boolean This value can be set explicitly to true or false to force the field to render on
one line or two lines respectively.... This value can be set explicitly to true or false to force the field to render on
one line or two lines respectively. The default value is 'auto' which means that the field will
calculate its container's width and compare it to singleLineMinWidth to determine whether to render
on one line or two automatically. Note that this only applies at render time -- once the field is rendered
the layout cannot be changed. | DateRangeField | |
singleLineMinWidth : Number If singleLine is set to 'auto' it will use this value to determine whether to render the field on one
line or two. Th... If singleLine is set to 'auto' it will use this value to determine whether to render the field on one
line or two. This value is the approximate minimum width required to render the field on a single line, so if
the field's container is narrower than this value it will automatically be rendered on two lines. | DateRangeField | |
toText : String The text to display in between the date/time fields (defaults to 'to') | DateRangeField |
Method | Defined By | |
---|---|---|
DateRangeField( Object config )
Parameters:
| DateRangeField | |
getValue()
:
Array Returns an array containing the following values in order:<div class="mdetail-params">
DateTime : <div class="sub-des... Returns an array containing the following values in order:
Parameters:
| DateRangeField | |
setValue( Array/Date/Object v )
:
voidSets the values to use in the date range. Sets the values to use in the date range. Parameters:
| DateRangeField |