X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/c930e9176a5a85509c5b0230e2bff5c22a591432..c8256059947f3aa8f5b0a9a2acf55e2142bb4742:/docs/output/Ext.form.TextField.html diff --git a/docs/output/Ext.form.TextField.html b/docs/output/Ext.form.TextField.html index 964b8b78..b181b9a4 100644 --- a/docs/output/Ext.form.TextField.html +++ b/docs/output/Ext.form.TextField.html @@ -1,45 +1,11 @@ -
Properties Methods Events Config Options Direct Link
Observable
  Component
    BoxComponent
      Field
        TextField

Class Ext.form.TextField

Package:Ext.form
Defined In:TextField.js
Class:TextField
Subclasses:NumberField, TextArea, TriggerField
Extends:Field
xtype:textfield

Basic text field. Can be used as a direct replacement for traditional text inputs, +

Observable
  Component
    BoxComponent
      Field
        TextField

Class Ext.form.TextField

Package:Ext.form
Defined In:TextField.js
Class:TextField
Subclasses:NumberField, TextArea, TriggerField
Extends:Field

Basic text field. Can be used as a direct replacement for traditional text inputs, or as the base class for more sophisticated input controls (like Ext.form.TextArea and Ext.form.ComboBox).

Validation

-

Field validation is processed in a particular order. If validation fails at any particular -step the validation routine halts.

+

The validation procedure is described in the documentation for validateValue.

+

Alter Validation Behavior

+

Validation behavior for each field can be configured:

    -
  • 1. Field specific validator -
    -

    If a field is configured with a validator function, -it will be passed the current field value. The validator -function is expected to return boolean true if the value is valid or return a string to -represent the invalid message if invalid.

    -
  • -
  • 2. Built in Validation -
    -

    Basic validation is affected with the following configuration properties:

    -
    -Validation    Invalid Message
    -allowBlank    emptyText
    -minLength     minLengthText
    -maxLength     maxLengthText
    -
    -
  • -
  • 3. Preconfigured Validation Types (VTypes) -
    -

    Using VTypes offers a convenient way to reuse validation. If a field is configured with a -vtype, the corresponding VTypes -validation function will be used for validation. If invalid, either the field's -vtypeText or the VTypes vtype Text property will be -used for the invalid message. Keystrokes on the field will be filtered according to the VTypes -vtype Mask property.

    -
  • -
  • 4. Field specific regex test -
    -

    Each field may also specify a regex test. -The invalid message for this test is configured with -regexText.

    -
  • -
  • Alter Validation Behavior -
    -

    Validation behavior for each field can be configured:

    • invalidText : the default validation message to show if any validation step above does not provide a message when invalid
    • maskRe : filter out keystrokes before any validation occurs
    • @@ -49,17 +15,15 @@ but before being validated
    • validateOnBlur, validationDelay, and validationEvent : modify how/when validation is triggered
    • -
    -

Config Options

Config OptionsDefined By
 allowBlank : Boolean
Specify false to validate that the value's length is > 0 (defaults to -true)
TextField
 allowDomMove : Boolean
Whether the component can move the Dom node when rendering (defaults to true).
Component
 allowDomMove : Boolean
Whether the component can move the Dom node when rendering (defaults to true).
Component
 blankText : String
The error text to display if the allowBlank validation -fails (defaults to 'This field is required')
TextField
 blankText : String
The error text to display if the allowBlank validation +fails (defaults to 'This field is required')
TextField
 cls : String
A custom CSS class to apply to the field's underlying element (defaults to "").
Field
 cls : String
A custom CSS class to apply to the field's underlying element (defaults to '').
Field
 disableKeyFilter : Boolean
Specify true to disable input keystroke filtering (defaults +

Component
 data : Mixed
The initial set of data to apply to the tpl to +update the content area of the Component.
Component
 disableKeyFilter : Boolean
Specify true to disable input keystroke filtering (defaults to false)
TextField
 enableKeyEvents : Boolean
true to enable the proxying of key events for the HTML input -field (defaults to false)
TextField
 fieldClass : String
The default CSS class for the field (defaults to "x-form-field")
Field
 fieldClass : String
The default CSS class for the field (defaults to 'x-form-field')
Field
 focusClass : String
The CSS class to use when the field receives focus (defaults to "x-form-focus")
Field
 grow : Boolean
true if this field should automatically grow and shrink to its content +});
Component
 focusClass : String
The CSS class to use when the field receives focus (defaults to 'x-form-focus')
Field
 grow : Boolean
true if this field should automatically grow and shrink to its content (defaults to false)
TextField
 growMax : Number
The maximum width to allow when grow = true (defaults to 800)
TextField
 growMin : Number
The minimum width to allow when grow = true (defaults to 30)
TextField
 invalidClass : String
The CSS class to use when marking a field invalid (defaults to "x-form-invalid")
Field
 invalidClass : String
The CSS class to use when marking a field invalid (defaults to 'x-form-invalid')
Field
 minLength : Number
Minimum input field length required (defaults to 0)
TextField
 msgFx : String
Experimental The effect used when displaying a validation message under the field -(defaults to 'normal').
Field
 preventMark : Boolean
true to disable marking the field invalid. +Defaults to false.
Field
 regexText : String
The error text to display if regex is used and the @@ -518,17 +614,41 @@ Ext.Element.ap...
A custom style specification to be appl } }) ] -});
Component
 submitValue : Boolean
False to clear the name attribute on the field so that it is not submitted during a form post. +Defaults to true.
Field
 validateOnBlur : Boolean
Whether the field should validate when it loses focus (defaults to true).
Field
 validationDelay : Number
The length of time in milliseconds after user input begins until validation +not those which are built via applyTo (defaults to undefined).
Field
 validateOnBlur : Boolean
Whether the field should validate when it loses focus (defaults to true).
Field
 validationDelay : Number
The length of time in milliseconds after user input begins until validation is initiated (defaults to 250)
Field
 value : Mixed
A value to initialize this field with (defaults to undefined).
Field
 vtype : String
A validation type name as defined in Ext.form.VTypes (defaults to null)
TextField
 value : Mixed
A value to initialize this field with (defaults to undefined).
Field
 vtype : String
A validation type name as defined in Ext.form.VTypes (defaults to null)
TextField
 hidden : Boolean
True if this component is hidden. Read-only.
Component
 initialConfig : Object
This Component's initial configuration specification. Read-only.
Component
 hidden : Boolean
True if this component is hidden. Read-only.
Component
 initialConfig : Object
This Component's initial configuration specification. Read-only.
Component
 rendered : Boolean
True if this component has been rendered. Read-only.
Component

Public Methods

MethodDefined By
 rendered : Boolean
True if this component has been rendered. Read-only.
Component

Public Methods

MethodDefined By

Public Events

EventDefined By

Public Events

EventDefined By