Clear Up
SharpKit Reference

Field Class

Namespace: Ext.field

Base Types

System.Object

Constructors

Properties

Name Description
alias
alternateClassName Field is the base class for all form fields used in Sencha Touch. It provides a lot of shared functionality to all field subclasses (for example labels, simple validation, {@link #clearIcon clearing} and tab index management), but is rarely used directly. Instead, it is much more common to use one of the field subclasses: *
            xtype            Class
            ---------------------------------------
            textfield        {@link Ext.field.Text}
            numberfield      {@link Ext.field.Number}
            textareafield    {@link Ext.field.TextArea}
            hiddenfield      {@link Ext.field.Hidden}
            radiofield       {@link Ext.field.Radio}
            checkboxfield    {@link Ext.field.Checkbox}
            selectfield      {@link Ext.field.Select}
            togglefield      {@link Ext.field.Toggle}
            fieldset         {@link Ext.form.FieldSet}
            
* Fields are normally used within the context of a form and/or fieldset. See the {@link Ext.form.Panel FormPanel} and {@link Ext.form.FieldSet FieldSet} docs for examples on how to put those together, or the list of links above for usage of individual field types. If you wish to create your own Field subclasses you can extend this class, though it is sometimes more useful to extend {@link Ext.field.Text} as this provides additional text entry functionality.
extend Field is the base class for all form fields used in Sencha Touch. It provides a lot of shared functionality to all field subclasses (for example labels, simple validation, {@link #clearIcon clearing} and tab index management), but is rarely used directly. Instead, it is much more common to use one of the field subclasses: *
            xtype            Class
            ---------------------------------------
            textfield        {@link Ext.field.Text}
            numberfield      {@link Ext.field.Number}
            textareafield    {@link Ext.field.TextArea}
            hiddenfield      {@link Ext.field.Hidden}
            radiofield       {@link Ext.field.Radio}
            checkboxfield    {@link Ext.field.Checkbox}
            selectfield      {@link Ext.field.Select}
            togglefield      {@link Ext.field.Toggle}
            fieldset         {@link Ext.form.FieldSet}
            
* Fields are normally used within the context of a form and/or fieldset. See the {@link Ext.form.Panel FormPanel} and {@link Ext.form.FieldSet FieldSet} docs for examples on how to put those together, or the list of links above for usage of individual field types. If you wish to create your own Field subclasses you can extend this class, though it is sometimes more useful to extend {@link Ext.field.Text} as this provides additional text entry functionality.
isField Set to true on all Ext.field.Field subclasses. This is used by {@link Ext.form.Panel#getValues} to determine which components inside a form are fields. @property isField @type Boolean
isFormField
Value Returns the field data value @return {String} The field value

Methods

Name Description
applyClearIcon(object) Creates a new {@link Ext.form.ClearIcon} instance using {@link Ext.Factory} @private
applyInput(object) Creates a new {@link Ext.field.Input} instance using {@link Ext.Factory} @private
applyLabel(object) Creates a new {@link Ext.form.Label} instance using {@link Ext.Factory} @private
doInitValue() @private
doSetDisabled(object)
getValue() Returns the field data value @return {String} The field value
initialize()
isDirty()

Returns true if the value of this Field has been changed from its {@link #originalValue}. Will return false if the field is disabled or has not been rendered yet.

@return {Boolean} True if this field has been changed from its original value (and is not disabled), false otherwise.
onLabelAlignChange(object, object, object) Updates the class on this field when the label alignment changes @private
reset() Resets the current field value to the originally loaded value and clears any validation messages.
updateClearIcon(object) Adds the new {@link Ext.form.ClearIcon} instance into this field @private
updateInput(object) Adds the new {@link Ext.field.Input} instance into this field @private
updateInputType(object) @private
updateLabel(object, object) Adds the new {@link Ext.form.Label} instance into this field @private
updateLabelAlign(object) @private
updateLabelCls(object) @private
updateLabelWidth(object) @private
updateName(object) @private
updateRequired(object) Updates the {@link #required} configuration @private
updateRequiredCls(object, object) Updates the {@link #required} configuration @private
updateTabIndex(object) @private
updateValue(object) @private
© Copyright 2005-2011 SharpKit. All rights reserved.