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

Class Ext.form.Field

Package:Ext.form
Defined In:Field.js
Class:Field
Subclasses:Checkbox, DatePicker, Hidden, Slider, Slider.Thumb, Text
Extends:Container

Base class for form fields that provides default event handling, sizing, value handling and other functionality. Ext.form.Field is not used directly in applications, instead the subclasses such as Ext.form.Text should be used.

Config Options

Config OptionsDefined By
 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
 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
 monitorOrientation : Boolean
Monitor Orientation change
Component
 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

Public Methods

MethodDefined By

Public Events

EventDefined By