Properties Methods Events Config Options Direct Link
Observable
  Component
    Component
      Container
        Container
          Field
            Text
              Number

Class Ext.form.Number

Package:Ext.form
Defined In:Number.js
Class:Number
Subclasses:NumberField, Spinner
Extends:Text

Wraps an HTML5 number field. See FormPanel for example usage.

Config Options

Config OptionsDefined By
 autoCapitalize : Boolean
Text
 autoComplete : Boolean
Text
 autoCorrect : Boolean
Text
 centered : Boolean
Center the Component. Defaults to false.
Component
 cls : String
A custom CSS class to apply to the field's underlying element (defaults to '').
Field
 componentCls : String
CSS Class to be added to a components root level element to give distinction to it via styling.
Component
 data : Mixed
The initial set of data to apply to the tpl to update the content area of the Component.
Component
 disabledCls : String
CSS class to add when the Component is disabled. Defaults to 'x-item-disabled'.
Component
 draggable : Boolean
Allows the component to be dragged via the touch event.
Component
 fieldCls : String
The default CSS class for the field (defaults to 'x-form-field')
Field
 floating : Boolean
Create the Component as a floating and use absolute positioning. Defaults to false.
Component
 floatingCls : Boolean
The class that is being added to this component when its floating. (defaults to x-floating)
Component
 focusCls : String
The CSS class to use when the field receives focus (defaults to 'x-field-focus')
Text
 height : Number
The height of this component in pixels.
Component
 hidden : Boolean
Defaults to false.
Component
 label : String
The label to associate with this field. Defaults to null.
Field
 labelAlign : String
The location to render the label of the field. Acceptable values are 'top' and 'left'. Defaults to 'left'
Field
 labelWidth : Mixed
The width of the label, can be any valid CSS size. E.g '20%', '6em', '100px'. Defaults to '30%'
Field
 maxLength : Integer
The maximum number of permitted input characters (defaults to 0).
Text
 monitorOrientation : Boolean
Monitor Orientation change
Component
 placeHolder : String
A string value displayed in the input (if supported) when the control is empty.
Text
 stopMaskTapEvent : Boolean
True to stop the event that fires when you click outside the floating component. Defalts to true.
Component
 styleHtmlCls : String
The class that is added to the content target when you set styleHtmlContent to true. Defaults to 'x-html'
Component
 value : Mixed
A value to initialize this field with (defaults to undefined).
Field
 width : Number
The width of this component in pixels.
Component

Public Properties

PropertyDefined By
 draggable : Boolean
Read-only property indicating whether or not the component can be dragged
Component
 items : Ext.util.MixedCollection
The MixedCollection containing all the child items of this container.
Container
 labelEl : Ext.Element

The label Element associated with this Field. Only available if a label is specified.

Field
 rendered : Boolean
Read-only property indicating whether or not the component has been rendered.
Component
 {Boolean} : Object
True if the field currently has focus.
Text

Public Methods

MethodDefined By

Public Events

EventDefined By