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

Class Ext.form.Spinner

Package:Ext.form
Defined In:Spinner.js
Class:Spinner
Subclasses:SpinnerField
Extends:Number

Wraps an HTML5 number field. Example usage:

new Ext.form.Spinner({
    minValue: 0,
    maxValue: 100,
    incrementValue: 2,
    cycle: true
});

Config Options

Config OptionsDefined By
 accelerateOnTapHold : Boolean
True if autorepeating should start slowly and accelerate. Defaults to true.
Spinner
 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
 disableInput : Boolean
True to disable the input field, meaning that only the spinner buttons can be used. Defaults to false.
Spinner
 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
 incrementValue : Number
Value that is added or subtracted from the current value when a spinner is used. Defaults to 1.
Spinner
 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
 maxValue : Number
The maximum allowed value (defaults to Number.MAX_VALUE)
Spinner
 minValue : Number
The minimum allowed value (defaults to Number.NEGATIVE_INFINITY)
Spinner
 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