Roo.util.Observable Roo.Component Roo.DatePicker
Package: | Roo |
Defined In: | Roo/DatePicker.js. |
Class: | DatePicker |
Extends: | Roo.Component |
Options | Defined By | |
---|---|---|
actionMode : String
which property holds the element that used for hide() / show() / disable() / enable()
default is 'el'
which property holds the element that used for hide() / show() / disable() / enable()
default is 'el' |
Roo.Component | |
allowDomMove : Boolean
Whether the component can move the Dom node when rendering (defaults to true).
Whether the component can move the Dom node when rendering (defaults to true).
|
Roo.Component | |
cancelText : String
The text to display on the cancel button
The text to display on the cancel button
|
Roo.DatePicker | |
constrainToViewport : Boolean
True to constrain the date picker to the viewport (defaults to true)
True to constrain the date picker to the viewport (defaults to true)
|
Roo.DatePicker | |
dayNames : Array
An array of textual day names which can be overriden for localization support (defaults to Date.dayNames)
An array of textual day names which can be overriden for localization support (defaults to Date.dayNames)
|
Roo.DatePicker | |
disableClass : String
CSS class added to the component when it is disabled (defaults to "x-item-disabled").
CSS class added to the component when it is disabled (defaults to "x-item-disabled").
|
Roo.Component | |
disabledDatesRE : RegExp
JavaScript regular expression used to disable a pattern of dates (defaults to null)
JavaScript regular expression used to disable a pattern of dates (defaults to null)
|
Roo.DatePicker | |
disabledDatesText : String
The tooltip text to display when the date falls on a disabled date (defaults to "")
The tooltip text to display when the date falls on a disabled date (defaults to "")
|
Roo.DatePicker | |
disabledDays : Array
An array of days to disable, 0-based.
An array of days to disable, 0-based. For example, [0, 6] disables Sunday and Saturday (defaults to null).
|
Roo.DatePicker | |
disabledDaysText : String
The tooltip to display when the date falls on a disabled day (defaults to "")
The tooltip to display when the date falls on a disabled day (defaults to "")
|
Roo.DatePicker | |
format : String
The default date format string which can be overriden for localization support.
The default date format string which can be overriden for localization support. The format must be
valid according to {link DateparseDate} (defaults to 'm/d/y'). |
Roo.DatePicker | |
hideMode : String
How this component should hidden.
How this component should hidden. Supported values are
"visibility" (css visibility), "offsets" (negative offset position) and "display" (css display) - defaults to "display". Possible Values: display, visibility |
Roo.Component | |
listeners : Object
list of events and functions to call for this object,
For example :
list of events and functions to call for this object,
For example :
|
Roo.util.Observable | |
maxDate : Date
Maximum allowable date (JavaScript date object, defaults to null)
Maximum allowable date (JavaScript date object, defaults to null)
|
Roo.DatePicker | |
maxText : String
The error text to display if the maxDate validation fails (defaults to "This date is after the maximum date")
The error text to display if the maxDate validation fails (defaults to "This date is after the maximum date")
|
Roo.DatePicker | |
minDate : Date
Minimum allowable date (JavaScript date object, defaults to null)
Minimum allowable date (JavaScript date object, defaults to null)
|
Roo.DatePicker | |
minText : String
The error text to display if the minDate validation fails (defaults to "This date is before the minimum date")
The error text to display if the minDate validation fails (defaults to "This date is before the minimum date")
|
Roo.DatePicker | |
monthNames : Array
An array of textual month names which can be overriden for localization support (defaults to Date.monthNames)
An array of textual month names which can be overriden for localization support (defaults to Date.monthNames)
|
Roo.DatePicker | |
monthYearText : String
The header month selector tooltip (defaults to 'Choose a month (Control+Up/Down to move years)')
The header month selector tooltip (defaults to 'Choose a month (Control+Up/Down to move years)')
|
Roo.DatePicker | |
nextText : String
The next month navigation button tooltip (defaults to 'Next Month (Control+Right)')
The next month navigation button tooltip (defaults to 'Next Month (Control+Right)')
|
Roo.DatePicker | |
okText : String
The text to display on the ok button
The text to display on the ok button
|
Roo.DatePicker | |
prevText : String
The previous month navigation button tooltip (defaults to 'Previous Month (Control+Left)')
The previous month navigation button tooltip (defaults to 'Previous Month (Control+Left)')
|
Roo.DatePicker | |
showClear : Bool
Show a clear button (usefull for date form elements that can be blank.
Show a clear button (usefull for date form elements that can be blank.)
|
Roo.DatePicker | |
startDay : Number
Day index at which the week should begin, 0-based (defaults to 0, which is Sunday)
Day index at which the week should begin, 0-based (defaults to 0, which is Sunday)
|
Roo.DatePicker | |
todayText : String
The text to display on the button that selects the current date (defaults to "Today")
The text to display on the button that selects the current date (defaults to "Today")
|
Roo.DatePicker | |
todayTip : String
The tooltip to display for the button that selects the current date (defaults to "{current date} (Spacebar)")
The tooltip to display for the button that selects the current date (defaults to "{current date} (Spacebar)")
|
Roo.DatePicker |
Method | Defined By | |
---|---|---|
new Roo.DatePicker
(Object config)
Create a new Roo.DatePicker
Create a new Roo.DatePicker
|
||
addEvents
(Object object)
Used to define events on this Observable
Used to define events on this Observable
|
Roo.util.Observable | |
Appends an event handler to this component
Appends an event handler to this component
|
Roo.util.Observable | |
destroy
()
Destroys this component by purging any event listeners, removing the component's element from the DOM,
removing the component from its {link Roo.Container} (if applicable) and unregistering it from {link Roo.ComponentMgr}.
Destroys this component by purging any event listeners, removing the component's element from the DOM,
removing the component from its {link Roo.Container} (if applicable) and unregistering it from {link Roo.ComponentMgr}. |
Roo.Component | |
disable
()
:
Roo.Component
Disable this component.
Disable this component.
|
Roo.Component | |
enable
()
:
Roo.Component
Enable this component.
Enable this component.
|
Roo.Component | |
Fires the specified event with the passed parameters (minus the event name).
|
Roo.util.Observable | |
focus
(Boolean selectText)
:
Roo.Component
Try to focus this component.
Try to focus this component.
|
Roo.Component | |
getEl
()
:
Roo.Element
Returns the underlying {link Roo.Element}.
Returns the underlying {link Roo.Element}.
|
Roo.Component | |
getId
()
:
String
Returns the id of this component.
Returns the id of this component.
|
Roo.Component | |
getValue
()
:
Date
Gets the current selected value of the date field
Gets the current selected value of the date field
|
Roo.DatePicker | |
Roo.util.Observable | ||
hide
()
:
Roo.Component
Hide this component.
Hide this component.
|
Roo.Component | |
isVisible
()
Returns true if this component is visible.
Returns true if this component is visible.
|
Roo.Component | |
Appends an event handler to this element (shorthand for addListener)
Appends an event handler to this element (shorthand for addListener)
|
Roo.util.Observable | |
purgeListeners
()
Removes all listeners for this object
Removes all listeners for this object
|
Roo.util.Observable | |
Roo.util.Observable | ||
render
(String/HTMLElement/Element container)
If this is a lazy rendering component, render it to its container element.
If this is a lazy rendering component, render it to its container element.
|
Roo.Component | |
setDisabled
(Boolean disabled)
Convenience function for setting disabled/enabled by boolean.
Convenience function for setting disabled/enabled by boolean.
|
Roo.Component | |
setValue
(Date value)
Sets the value of the date field
Sets the value of the date field
|
Roo.DatePicker | |
setVisible
(Boolean visible)
:
Roo.Component
Convenience function to hide or show this component by boolean.
Convenience function to hide or show this component by boolean.
|
Roo.Component | |
show
()
:
Roo.Component
Show this component.
Show this component.
|
Roo.Component | |
Roo.util.Observable |
Event | Defined By | |
---|---|---|
beforedestroy (Roo.Component this)
Fires before the component is destroyed.
Fires before the component is destroyed. Return false to stop the destroy.
|
Roo.Component | |
beforehide (Roo.Component this)
Fires before the component is hidden.
Fires before the component is hidden. Return false to stop the hide.
|
Roo.Component | |
beforerender (Roo.Component this)
Fires before the component is rendered.
Fires before the component is rendered. Return false to stop the render.
|
Roo.Component | |
beforeshow (Roo.Component this)
Fires before the component is shown.
Fires before the component is shown. Return false to stop the show.
|
Roo.Component | |
destroy (Roo.Component this)
Fires after the component is destroyed.
Fires after the component is destroyed.
|
Roo.Component | |
disable (Roo.Component this)
Fires after the component is disabled.
Fires after the component is disabled.
|
Roo.Component | |
enable (Roo.Component this)
Fires after the component is enabled.
Fires after the component is enabled.
|
Roo.Component | |
hide (Roo.Component this)
Fires after the component is hidden.
Fires after the component is hidden.
|
Roo.Component | |
monthchange (DatePicker this, Date date)
Fires when the displayed month changes
Fires when the displayed month changes
|
Roo.DatePicker | |
render (Roo.Component this)
Fires after the component is rendered.
Fires after the component is rendered.
|
Roo.Component | |
select (DatePicker this, Date date)
Fires when a date is selected
Fires when a date is selected
|
Roo.DatePicker | |
show (Roo.Component this)
Fires after the component is shown.
Fires after the component is shown.
|
Roo.Component |