Properties Methods Events Config Options Direct Link
Observable
  Component
    BoxComponent
      Field
        TextField
          NumberField

Class Ext.form.NumberField

Package:Ext.form
Defined In:NumberField.js
Class:NumberField
Extends:TextField
Numeric text field that provides automatic keystroke filtering and numeric validation.

Config Options

Config Options Defined By
  allowBlank : Boolean
False to validate that the value length > 0 (defaults to true)
TextField
  allowDecimals : Boolean
False to disallow decimal values (defaults to true)
NumberField
  allowDomMove : Boolean
Whether the component can move the Dom node when rendering (defaults to true).
Component
  allowNegative : Boolean
False to prevent entering a negative sign (defaults to true)
NumberField
  baseChars : String
The base set of characters to evaluate as valid numbers (defaults to '0123456789').
NumberField
  blankText : String
Error text to display if the allow blank validation fails (defaults to "This field is required")
TextField
  clearCls : String
The CSS class used to provide field clearing (defaults to 'x-form-clear-left')
Field
  decimalPrecision : Number
The maximum precision to display after the decimal separator (defaults to 2)
NumberField
  decimalSeparator : String
Character(s) to allow as the decimal separator (defaults to '.')
NumberField
  disableKeyFilter : Boolean
True to disable input keystroke filtering (defaults to false)
TextField
  disabled : Boolean
Render this component disabled (default is false).
Component
  disabledClass : String
CSS class added to the component when it is disabled (defaults to "x-item-disabled").
Component
  emptyText : String
The default text to display in an empty field (defaults to null).
TextField
  fieldClass : String
The default CSS class for the field (defaults to "x-form-field x-form-num-field")
NumberField
  fieldLabel : String
The label text to display next to this field (defaults to '')
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
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
  height : Number
The height of this component in pixels (defaults to auto).
BoxComponent
  hidden : Boolean
Render this component hidden (default is false).
Component
  hideLabel : Boolean
True to completely hide the label element (defaults to false)
Field
  id : String
The unique id of this component (defaults to an auto-assigned id).
Component
  invalidClass : String
The CSS class to use when marking a field invalid (defaults to "x-form-invalid")
Field
  maskRe : RegExp
An input mask regular expression that will be used to filter keystrokes that don't match (defaults to null)
TextField
  maxLength : Number
Maximum input field length allowed (defaults to Number.MAX_VALUE)
TextField
  maxValue : Number
The maximum allowed value (defaults to Number.MAX_VALUE)
NumberField
  minLength : Number
Minimum input field length required (defaults to 0)
TextField
  minValue : Number
The minimum allowed value (defaults to Number.NEGATIVE_INFINITY)
NumberField
  msgFx : String
Experimental The effect used when displaying a validation message under the field (defaults to 'normal').
Field
  name : String
The field's HTML name attribute (defaults to "").
Field
  pageX : Number
The page level x coordinate for this component if contained within a positioning container.
BoxComponent
  pageY : Number
The page level y coordinate for this component if contained within a positioning container.
BoxComponent
  regexText : String
The error text to display if regex is used and the test fails during validation (defaults to "")
TextField
  selectOnFocus : Boolean
True to automatically select any existing field text when the field receives input focus (defaults to false)
TextField
  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
  validationEvent : String/Boolean
The event that should initiate field validation. Set to false to disable automatic validation (defaults to "keyup").
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
  width : Number
The width of this component in pixels (defaults to auto).
BoxComponent
  x : Number
The local x (left) coordinate for this component if contained within a positioning container.
BoxComponent
  y : Number
The local y (top) coordinate for this component if contained within a positioning container.
BoxComponent

Public Properties

Property Defined By
  disabled : Boolean
True if this component is disabled. 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

Method Defined By

Public Events

Event Defined By