Roo.util.Observable Roo.Component Roo.BoxComponent Roo.form.Field Roo.form.DayPicker
Package: | Roo.form |
Defined In: | Roo/form/DayPicker.js. |
Class: | DayPicker |
Extends: | Roo.form.Field |
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 | |
autoCreate : String/Object
A DomHelper element spec, or true for a default element spec (defaults to
{tag: "input", type: "checkbox", autocomplete: "off"})
A DomHelper element spec, or true for a default element spec (defaults to
{tag: "input", type: "checkbox", autocomplete: "off"}) |
Roo.form.DayPicker | |
cls : String
A CSS class to apply to the field's underlying element.
A CSS class to apply to the field's underlying element.
|
Roo.form.Field | |
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 | |
disabled : Boolean
True to disable the field (defaults to false).
True to disable the field (defaults to false).
|
Roo.form.Field | |
fieldClass : String
The default CSS class for the checkbox (defaults to "x-form-field")
The default CSS class for the checkbox (defaults to "x-form-field")
|
Roo.form.DayPicker | |
fieldLabel : String
Label to use when rendering a form.
Label to use when rendering a form.
|
Roo.form.Field | |
focusClass : String
The CSS class to use when the checkbox receives focus (defaults to undefined)
The CSS class to use when the checkbox receives focus (defaults to undefined)
|
Roo.form.DayPicker | |
height : Number
height (optional) size of component
height (optional) size of component
|
Roo.BoxComponent | |
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 | |
inputType : String
The type attribute for input fields -- e.g.
The type attribute for input fields -- e.g. radio, text, password (defaults to "text").
|
Roo.form.Field | |
invalidClass : String
The CSS class to use when marking a field invalid (defaults to "x-form-invalid")
The CSS class to use when marking a field invalid (defaults to "x-form-invalid")
|
Roo.form.Field | |
invalidText : String
The error text to use when marking a field invalid and no message is provided (defaults to "The value in this field is invalid")
The error text to use when marking a field invalid and no message is provided (defaults to "The value in this field is invalid")
|
Roo.form.Field | |
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 | |
msgFx : String
Experimental The effect used when displaying a validation message under the field (defaults to 'normal').
Experimental The effect used when displaying a validation message under the field (defaults to 'normal').
|
Roo.form.Field | |
msgTarget : String
The location where error text should display.
The location where error text should display. Should be one of the following values (defaults to 'qtip'):
|
Roo.form.Field | |
name : String
The field's HTML name attribute.
The field's HTML name attribute.
|
Roo.form.Field | |
qtip : String
Mouse over tip
Mouse over tip
|
Roo.form.Field | |
readOnly : Boolean
True to mark the field as readOnly in HTML (defaults to false) -- Note: this only sets the element's readOnly DOM attribute.
True to mark the field as readOnly in HTML (defaults to false) -- Note: this only sets the element's readOnly DOM attribute.
|
Roo.form.Field | |
tabIndex : Number
The tabIndex for this field.
The tabIndex for this field. Note this only applies to fields that are rendered, not those which are built via applyTo (defaults to undefined).
|
Roo.form.Field | |
validateOnBlur : Boolean
Whether the field should validate when it loses focus (defaults to true).
Whether the field should validate when it loses focus (defaults to true).
|
Roo.form.Field | |
validationDelay : Number
The length of time in milliseconds after user input begins until validation is initiated (defaults to 250)
The length of time in milliseconds after user input begins until validation is initiated (defaults to 250)
|
Roo.form.Field | |
validationEvent : String/Boolean
The event that should initiate field validation.
The event that should initiate field validation. Set to false to disable
automatic validation (defaults to "keyup"). |
Roo.form.Field | |
value : Mixed
A value to initialize this field with.
A value to initialize this field with.
|
Roo.form.Field | |
width : Number
width (optional) size of component
width (optional) size of component
|
Roo.BoxComponent |
Method | Defined By | |
---|---|---|
new Roo.form.DayPicker
(Object config)
Create a new Roo.form.DayPicker
Create a new Roo.form.DayPicker
|
||
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 | |
applyTo
(String/HTMLElement/Element el)
:
Roo.form.Field
Apply the behaviors of this component to an existing element.
Apply the behaviors of this component to an existing element. This is used instead of render().
|
Roo.form.Field | |
clearInvalid
()
Clear any invalid styles/messages for this field
Clear any invalid styles/messages for this field
|
Roo.form.Field | |
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 | |
getBox
(Boolean local)
Gets the current box measurements of the component's underlying element.
Gets the current box measurements of the component's underlying element.
|
Roo.BoxComponent | |
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 | |
getName
()
:
String
Returns the name attribute of the field if available
Returns the name attribute of the field if available
|
Roo.form.Field | |
Gets the current XY position of the component's underlying element.
|
Roo.BoxComponent | |
getRawValue
()
:
Mixed
Returns the raw data value which may or may not be a valid, defined value.
Returns the raw data value which may or may not be a valid, defined value. To return a normalized value see {link getValue}.
|
Roo.form.Field | |
getSize
()
:
Object
Gets the current size of the component's underlying element.
Gets the current size of the component's underlying element.
|
Roo.BoxComponent | |
getValue
()
:
Boolean
Returns the checked state of the checkbox.
Returns the checked state of the checkbox.
|
Roo.form.DayPicker | |
hasChanged
()
checks the current value against the 'loaded' value.
checks the current value against the 'loaded' value.
Note - will return false if 'resetHasChanged' has not been called first. |
Roo.form.Field | |
Roo.util.Observable | ||
hide
()
:
Roo.Component
Hide this component.
Hide this component.
|
Roo.Component | |
isDirty
()
Returns true if this field has been changed since it was originally loaded and is not disabled.
Returns true if this field has been changed since it was originally loaded and is not disabled.
DEPRICATED - it never worked well - use hasChanged/resetHasChanged. |
Roo.form.Field | |
Roo.form.Field | ||
isVisible
()
Returns true if this component is visible.
Returns true if this component is visible.
|
Roo.Component | |
markInvalid
(String msg)
Mark this field as invalid
Mark this field as invalid
|
Roo.form.Field | |
Appends an event handler to this element (shorthand for addListener)
Appends an event handler to this element (shorthand for addListener)
|
Roo.util.Observable | |
Called after the component is moved, this method is empty by default but can be implemented by any
subclass that needs to perform custom logic after a move occurs. |
Roo.BoxComponent | |
Called after the component is resized, this method is empty by default but can be implemented by any
subclass that needs to perform custom logic after a resize occurs.
Called after the component is resized, this method is empty by default but can be implemented by any
subclass that needs to perform custom logic after a resize occurs. |
Roo.BoxComponent | |
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 | |
reset
()
Resets the current field value to the originally loaded value and clears any validation messages
Resets the current field value to the originally loaded value and clears any validation messages
|
Roo.form.Field | |
resetHasChanged
()
stores the current value in loadedValue
stores the current value in loadedValue
|
Roo.form.Field | |
setDisabled
(Boolean disabled)
Convenience function for setting disabled/enabled by boolean.
Convenience function for setting disabled/enabled by boolean.
|
Roo.Component | |
Roo.BoxComponent | ||
Roo.BoxComponent | ||
setRawValue
(Mixed value)
Sets the underlying DOM field's value directly, bypassing validation.
Sets the underlying DOM field's value directly, bypassing validation. To set the value with validation see {link setValue}.
|
Roo.form.Field | |
Sets the width and height of the component.
Sets the width and height of the component. This method fires the resize event. This method can accept
either width and height as separate numeric arguments, or you can pass a size object like {width:10, height:20}.
|
Roo.BoxComponent | |
Roo.form.DayPicker | ||
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 | |
syncSize
()
Force the component's size to recalculate based on the underlying element's current height and width.
Force the component's size to recalculate based on the underlying element's current height and width.
|
Roo.BoxComponent | |
Roo.util.Observable | ||
updateBox
(Object box)
Sets the current box measurements of the component's underlying element.
Sets the current box measurements of the component's underlying element.
|
Roo.BoxComponent | |
validate
()
:
Boolean
Validates the field value
Validates the field value
|
Roo.form.Field |
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 | |
blur (Roo.form.Field this)
Fires when this field loses input focus.
Fires when this field loses input focus.
|
Roo.form.Field | |
change (Roo.form.Field this, Mixed newValue, Mixed oldValue)
Fires just before the field blurs if the field value has changed.
Fires just before the field blurs if the field value has changed.
|
Roo.form.Field | |
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 | |
focus (Roo.form.Field this)
Fires when this field receives input focus.
Fires when this field receives input focus.
|
Roo.form.Field | |
hide (Roo.Component this)
Fires after the component is hidden.
Fires after the component is hidden.
|
Roo.Component | |
invalid (Roo.form.Field this, String msg)
Fires after the field has been marked as invalid.
Fires after the field has been marked as invalid.
|
Roo.form.Field | |
keyup (Roo.form.Field this, Roo.EventObject e)
Fires after the key up
Fires after the key up
|
Roo.form.Field | |
Fires after the component is moved.
Fires after the component is moved.
|
Roo.BoxComponent | |
render (Roo.Component this)
Fires after the component is rendered.
Fires after the component is rendered.
|
Roo.Component | |
Fires after the component is resized.
Fires after the component is resized.
|
Roo.BoxComponent | |
show (Roo.Component this)
Fires after the component is shown.
Fires after the component is shown.
|
Roo.Component | |
specialkey (Roo.form.Field this, Roo.EventObject e)
Fires when any key related to navigation (arrows, tab, enter, esc, etc.
Fires when any key related to navigation (arrows, tab, enter, esc, etc.) is pressed. You can check
{link Roo.EventObjectgetKey} to determine which key was pressed.
|
Roo.form.Field | |
valid (Roo.form.Field this)
Fires after the field has been validated with no errors.
Fires after the field has been validated with no errors.
|
Roo.form.Field |