|
| allQuery : String The text query to send to the server to return all records for the list
with no filtering (defaults to '') | ComboBox |
| 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 |
| anchor : StringNote: this config is only used when this Component is rendered
by a Container which has been configured to use an Anc... Note: this config is only used when this Component is rendered
@@ -81,14 +81,24 @@ to create its subcomponents from that markup if applicable.
If applyTo is specified, any value passed for renderTo will be ignored and the target
element's parent node will automatically be used as the component's container.
- | Component |
| autoCreate : String/ObjectA DomHelper element spec, or true for a default
-element spec. Used to create the Element which will encapsulate this... A DomHelper element spec, or true for a default
-element spec. Used to create the Element which will encapsulate this Component.
-See autoEl for details. Defaults to:
- {tag: "input", type: "text", size: "24", autocomplete: "off"}
| ComboBox |
| autoShow : BooleanTrue if the component should check for hidden classes (e.g. 'x-hidden' or 'x-hide-display') and remove
+ | Component |
| autoCreate : String/ObjectA DomHelper element spec, or true for a default
+element spec. Used to create the Element which will encapsulate this ... A DomHelper element spec, or true for a default
+element spec. Used to create the Element which will encapsulate this Component.
+See autoEl for details. Defaults to:
+ {tag: "input", type: "text", size: "24", autocomplete: "off"}
| ComboBox |
| autoScroll : Booleantrue to use overflow:'auto' on the components layout element and show scroll bars automatically when
+necessary, false... true to use overflow:'auto' on the components layout element and show scroll bars automatically when
+necessary, false to clip any overflowing content (defaults to false ).
| BoxComponent |
| autoShow : BooleanTrue if the component should check for hidden classes (e.g. 'x-hidden' or 'x-hide-display') and remove
them on render... True if the component should check for hidden classes (e.g. 'x-hidden' or 'x-hide-display') and remove
them on render (defaults to false). | Component |
| blankText : StringThe error text to display if the allowBlank validation
-fails (defaults to 'This field is required') | TextField |
| clearCls : StringThe CSS class used to to apply to the special clearing div rendered
+fails (defaults to 'This field is required') | TextField |
| boxMaxHeight : NumberThe maximum value in pixels which this BoxComponent will set its height to.
+Warning: This will override any size mana... The maximum value in pixels which this BoxComponent will set its height to.
+ Warning: This will override any size management applied by layout managers. | BoxComponent |
| boxMaxWidth : NumberThe maximum value in pixels which this BoxComponent will set its width to.
+Warning: This will override any size manag... The maximum value in pixels which this BoxComponent will set its width to.
+ Warning: This will override any size management applied by layout managers. | BoxComponent |
| boxMinHeight : NumberThe minimum value in pixels which this BoxComponent will set its height to.
+Warning: This will override any size mana... The minimum value in pixels which this BoxComponent will set its height to.
+ Warning: This will override any size management applied by layout managers. | BoxComponent |
| boxMinWidth : NumberThe minimum value in pixels which this BoxComponent will set its width to.
+Warning: This will override any size manag... The minimum value in pixels which this BoxComponent will set its width to.
+ Warning: This will override any size management applied by layout managers. | BoxComponent |
| clearCls : StringThe CSS class used to to apply to the special clearing div rendered
directly after each form field wrapper to provide... The CSS class used to to apply to the special clearing div rendered
directly after each form field wrapper to provide field clearing (defaults to
'x-form-clear-left').
@@ -96,7 +106,22 @@ directly after each form field wrapper to provide field clearing (defaults to
which has been configured to use the FormLayout layout
manager (e.g. Ext.form.FormPanel or specifying layout:'form') and either a
fieldLabel is specified or isFormField=true is specified.
- See Ext.layout.FormLayout.fieldTpl also. | Component |
| cls : String A custom CSS class to apply to the field's underlying element (defaults to ''). | Field |
| ctCls : String | Component |
| clearFilterOnReset : Boolean true to clear any filters on the store (when in local mode) when reset is called
+(defaults to true) | ComboBox |
| cls : String A custom CSS class to apply to the field's underlying element (defaults to ''). | Field |
| contentEl : StringOptional. Specify an existing HTML element, or the id of an existing HTML element to use as the content
+for this comp... Optional. Specify an existing HTML element, or the id of an existing HTML element to use as the content
+for this component.
+
+- Description :
+
This config option is used to take an existing HTML element and place it in the layout element
+of a new component (it simply moves the specified DOM element after the Component is rendered to use as the content.
+- Notes :
+
The specified HTML element is appended to the layout element of the component after any configured
+HTML has been inserted, and so the document will not contain this element at the time the render event is fired.
+The specified HTML element used will not participate in any layout
+scheme that the Component may use. It is just HTML. Layouts operate on child items .
+Add either the x-hidden or the x-hide-display CSS class to
+prevent a brief flicker of the content before it is rendered to the panel.
+ | Component |
| ctCls : StringAn optional extra CSS class that will be added to this component's container. This can be useful for
adding customize... An optional extra CSS class that will be added to this component's container. This can be useful for
adding customized styles to the container or any of its children using standard CSS rules. See
Ext.layout.ContainerLayout.extraCls also.
@@ -107,22 +132,23 @@ which assigns a value by default:
To configure the above Class with an extra CSS class append to the default. For example,
for BoxLayout (Hbox and Vbox): ctCls: 'x-box-layout-ct custom-class'
- | Component |
| disableKeyFilter : Boolean Specify true to disable input keystroke filtering (defaults
+ | Component |
| data : MixedThe 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 |
| disabled : BooleanTrue to disable the field (defaults to false).
Be aware that conformant with the <a href="http://www.w3.org/TR/html40... True to disable the field (defaults to false).
Be aware that conformant with the HTML specification,
-disabled Fields will not be submitted. | Field |
| disabledClass : String CSS class added to the component when it is disabled (defaults to 'x-item-disabled'). | Component |
| displayField : StringThe underlying data field name to bind to this
-ComboBox (defaults to undefined if mode = 'remote' or 'field1' if
-tr... | ComboBox |
| editable : Booleanfalse to prevent the user from typing text directly into the field,
-the field will only respond to a click on the tr... false to prevent the user from typing text directly into the field,
-the field will only respond to a click on the trigger to set the value. (defaults to true) | TriggerField |
| emptyClass : StringThe CSS class to apply to an empty field to style the emptyText
+disabled Fields will not be submitted. | Field |
| disabledClass : String CSS class added to the component when it is disabled (defaults to 'x-item-disabled'). | Component |
| displayField : StringThe underlying data field name to bind to this
+ComboBox (defaults to undefined if mode = 'remote' or 'field1' if
+tran... | ComboBox |
| editable : Booleanfalse to prevent the user from typing text directly into the field,
+the field will only respond to a click on the tri... false to prevent the user from typing text directly into the field,
+the field will only respond to a click on the trigger to set the value. (defaults to true). | TriggerField |
| emptyClass : StringThe CSS class to apply to an empty field to style the emptyText
(defaults to 'x-form-empty-field'). This class is au... The CSS class to apply to an empty field to style the emptyText
(defaults to 'x-form-empty-field'). This class is automatically added and removed as needed
depending on the current field value. | TextField |
| emptyText : StringThe default text to place into an empty field (defaults to null).
@@ -143,26 +169,26 @@ Example use: new Ext.FormPanel({
xtype: 'textfield',
fieldLabel: 'Name'
}]
-});
| Component |
| focusClass : String The CSS class to use when the field receives focus (defaults to 'x-form-focus') | Field |
| forceSelection : Booleantrue to restrict the selected value to one of the values in the list,
-false to allow the user to set arbitrary text ... true to restrict the selected value to one of the values in the list,
-false to allow the user to set arbitrary text into the field (defaults to false) | ComboBox |
| handleHeight : Number The height in pixels of the dropdown list resize handle if
+}); | Component |
| focusClass : String The CSS class to use when the field receives focus (defaults to 'x-form-focus') | Field |
| forceSelection : Booleantrue to restrict the selected value to one of the values in the list,
+false to allow the user to set arbitrary text i... true to restrict the selected value to one of the values in the list,
+false to allow the user to set arbitrary text into the field (defaults to false) | ComboBox |
| handleHeight : NumberThe height in pixels of the dropdown list resize handle if
resizable = true (defaults to 8) | ComboBox |
| height : NumberThe height of this component in pixels (defaults to auto).
Note to express this dimension as a percentage or offset s... The height of this component in pixels (defaults to auto).
Note to express this dimension as a percentage or offset see Ext.Component.anchor. | BoxComponent |
| hidden : BooleanRender this component hidden (default is false). If true, the
- hide method will be called internally. | Component |
| hiddenId : StringIf hiddenName is specified, hiddenId can also be provided
-to give the hidden field a unique id (defaults to the hidd... If hiddenName is specified, hiddenId can also be provided
-to give the hidden field a unique id (defaults to the hiddenName). The hiddenId
-and combo id should be different, since no two DOM
-nodes should share the same id. | ComboBox |
| hiddenName : StringIf specified, a hidden form field with this name is dynamically generated to store the
-field's data value (defaults ... If specified, a hidden form field with this name is dynamically generated to store the
-field's data value (defaults to the underlying DOM element's name). Required for the combo's value to automatically
-post during a form submission. See also valueField.
- Note: the hidden field's id will also default to this name if hiddenId is not specified.
-The ComboBox id and the hiddenId should be different, since
-no two DOM nodes should share the same id. So, if the ComboBox name and
-hiddenName are the same, you should specify a unique hiddenId. | ComboBox |
| hiddenValue : StringSets the initial value of the hidden field if hiddenName is
-specified to contain the selected valueField, from the S... Sets the initial value of the hidden field if hiddenName is
-specified to contain the selected valueField, from the Store. Defaults to the configured
+ hide method will be called internally. | Component |
| hiddenId : StringIf hiddenName is specified, hiddenId can also be provided
+to give the hidden field a unique id (defaults to the hidde... If hiddenName is specified, hiddenId can also be provided
+to give the hidden field a unique id (defaults to the hiddenName). The hiddenId
+and combo id should be different, since no two DOM
+nodes should share the same id. | ComboBox |
| hiddenName : StringIf specified, a hidden form field with this name is dynamically generated to store the
+field's data value (defaults t... If specified, a hidden form field with this name is dynamically generated to store the
+field's data value (defaults to the underlying DOM element's name). Required for the combo's value to automatically
+post during a form submission. See also valueField.
+ Note: the hidden field's id will also default to this name if hiddenId is not specified.
+The ComboBox id and the hiddenId should be different, since
+no two DOM nodes should share the same id. So, if the ComboBox name and
+hiddenName are the same, you should specify a unique hiddenId. | ComboBox |
| hiddenValue : StringSets the initial value of the hidden field if hiddenName is
+specified to contain the selected valueField, from the St... Sets the initial value of the hidden field if hiddenName is
+specified to contain the selected valueField, from the Store. Defaults to the configured
value. | ComboBox |
| hideLabel : Booleantrue to completely hide the label element
(label and separator). Defaults to false.
By default, even if you do not sp... true to completely hide the label element
@@ -187,8 +213,12 @@ since items are automatically laid out when they are first shown (no sizing
is done while hidden). | Component |
| hideParent : BooleanTrue to hide and show the component's container when hide/show is called on the component, false to hide
and show the... True to hide and show the component's container when hide/show is called on the component, false to hide
and show the component itself (defaults to false). For example, this can be used as a shortcut for a hide
-button on a window by setting hide:true on the button when adding it to its parent container. | Component |
| hideTrigger : Boolean true to hide the trigger element and display only the base
-text field (defaults to false) | TriggerField |
| id : StringThe unique id of this component (defaults to an auto-assigned id).
+button on a window by setting hide:true on the button when adding it to its parent container. | Component |
| hideTrigger : Boolean true to hide the trigger element and display only the base
+text field (defaults to false) | TriggerField |
| html : String/ObjectAn HTML fragment, or a DomHelper specification to use as the layout element
+content (defaults to ''). The HTML conten... An HTML fragment, or a DomHelper specification to use as the layout element
+content (defaults to ''). The HTML content is added after the component is rendered,
+so the document will not contain this HTML at the time the render event is fired.
+This content is inserted into the body before any configured contentEl is appended. | Component |
| id : StringThe unique id of this component (defaults to an auto-assigned id).
You should assign an id if you need to be able to ... The unique id of this component (defaults to an auto-assigned id).
You should assign an id if you need to be able to access the component later and you do
not have an object reference available (e.g., using Ext.getCmp).
@@ -262,12 +292,12 @@ avoiding potential conflicts with getComponent( 'p1'); // not the same as Ext.getCmp()
p2 = p1. ownerCt. getComponent( 'p2'); // reference via a sibling
Also see id and ref .
- Note: to access the container of an item see ownerCt. | Component |
| itemSelector : StringA simple CSS selector (e.g. div.some-class or span:first-child) that will be
-used to determine what nodes the Ext.Da... A simple CSS selector (e.g. div.some-class or span:first-child) that will be
-used to determine what nodes the Ext.DataView which handles the dropdown
-display will be working with.
- Note: this setting is required if a custom XTemplate has been
-specified in tpl which assigns a class other than 'x-combo-list-item'
+ Note: to access the container of an item see ownerCt. | Component |
| itemSelector : StringA simple CSS selector (e.g. div.some-class or span:first-child) that will be
+used to determine what nodes the Ext.Dat... A simple CSS selector (e.g. div.some-class or span:first-child) that will be
+used to determine what nodes the Ext.DataView which handles the dropdown
+display will be working with.
+ Note: this setting is required if a custom XTemplate has been
+specified in tpl which assigns a class other than 'x-combo-list-item'
to dropdown list items | ComboBox |
| labelSeparator : StringThe separator to display after the text of each
fieldLabel. This property may be configured at various levels.
The o... The separator to display after the text of each
@@ -312,16 +342,16 @@ Example use: new Ext.FormPanel({
fieldLabel: 'Name',
labelStyle: 'font-weight:bold;'
}]
-});
| Component |
| lazyInit : Boolean true to not initialize the list for this combo until the field is focused
-(defaults to true) | ComboBox |
| lazyRender : Booleantrue to prevent the ComboBox from rendering until requested
-(should always be used when rendering into an Ext.Editor... true to prevent the ComboBox from rendering until requested
-(should always be used when rendering into an Ext.Editor (e.g. Grids),
-defaults to false). | ComboBox |
| listAlign : StringA valid anchor position value. See Ext.Element.alignTo for details
-on supported anchor positions (defaults to 'tl-bl... A valid anchor position value. See Ext.Element.alignTo for details
-on supported anchor positions (defaults to 'tl-bl?') | ComboBox |
| listClass : String The CSS class to add to the predefined 'x-combo-list' class
-applied the dropdown list element (defaults to ''). | ComboBox |
| listEmptyText : String The empty text to display in the data view if no items are found.
-(defaults to '') | ComboBox |
| listWidth : NumberThe width (used as a parameter to Ext.Element.setWidth) of the dropdown
-list (defaults to the width of the ComboBox ... | Component |
| lazyInit : Boolean true to not initialize the list for this combo until the field is focused
+(defaults to true) | ComboBox |
| lazyRender : Booleantrue to prevent the ComboBox from rendering until requested
+(should always be used when rendering into an Ext.Editor ... true to prevent the ComboBox from rendering until requested
+(should always be used when rendering into an Ext.Editor (e.g. Grids),
+defaults to false). | ComboBox |
| listAlign : StringA valid anchor position value. See Ext.Element.alignTo for details
+on supported anchor positions (defaults to 'tl-bl?... A valid anchor position value. See Ext.Element.alignTo for details
+on supported anchor positions (defaults to 'tl-bl?') | ComboBox |
| listClass : String The CSS class to add to the predefined 'x-combo-list' class
+applied the dropdown list element (defaults to ''). | ComboBox |
| listEmptyText : String The empty text to display in the data view if no items are found.
+(defaults to '') | ComboBox |
| listWidth : NumberThe width (used as a parameter to Ext.Element.setWidth) of the dropdown
+list (defaults to the width of the ComboBox f... | ComboBox |
| listeners : ObjectA config object containing one or more event handlers to be added to this
object during initialization. This should ... A config object containing one or more event handlers to be added to this
object during initialization. This should be a valid listeners config object as specified in the
@@ -377,8 +407,8 @@ Ext.DomObserver = Ext.extend(Object, {
typeAhead: true,
mode: 'local',
triggerAction: 'all'
-}); | Observable |
| loadingText : StringThe text to display in the dropdown list while data is loading. Only applies
-when mode = 'remote' (defaults to 'Loa... The text to display in the dropdown list while data is loading. Only applies
+}); | Observable |
| loadingText : StringThe text to display in the dropdown list while data is loading. Only applies
+when mode = 'remote' (defaults to 'Load... The text to display in the dropdown list while data is loading. Only applies
when mode = 'remote' (defaults to 'Loading...') | ComboBox |
| margins : ObjectNote: this config is only used when this BoxComponent is rendered
by a Container which has been configured to use the... Note: this config is only used when this BoxComponent is rendered
by a Container which has been configured to use the BorderLayout
@@ -401,7 +431,7 @@ to the second, and the bottom is set to the third.
If there are four values, they apply to the top, right, bottom, and left, respectively.
Defaults to: {top:0, right:0, bottom:0, left:0}
| BoxComponent |
| maskRe : RegExp An input mask regular expression that will be used to filter keystrokes that do
-not match (defaults to null) | TextField |
| maxHeight : Number The maximum height in pixels of the dropdown list before scrollbars are shown
+not match (defaults to null) | TextField |
| maxHeight : Number The maximum height in pixels of the dropdown list before scrollbars are shown
(defaults to 300) | ComboBox |
| maxLength : NumberMaximum input field length allowed by validation (defaults to Number.MAX_VALUE).
This behavior is intended to provide... Maximum input field length allowed by validation (defaults to Number.MAX_VALUE).
This behavior is intended to provide instant feedback to the user by improving usability to allow pasting
@@ -415,66 +445,64 @@ any attributes you want to a field, for example: var myField =
autoCreate: {tag: 'input', type: 'text', size: '20', autocomplete: 'off', maxlength: '10'}
});
| TextField |
| maxLengthText : StringError text to display if the maximum length
validation fails (defaults to 'The maximum length for this field is {maxL... Error text to display if the maximum length
-validation fails (defaults to 'The maximum length for this field is {maxLength}') | TextField |
| minChars : NumberThe minimum number of characters the user must type before autocomplete and
-typeAhead activate (defaults to 4 if mod... The minimum number of characters the user must type before autocomplete and
- typeAhead activate (defaults to 4 if mode = 'remote' or 0 if
- mode = 'local', does not apply if
- editable = false). | ComboBox |
| minHeight : NumberThe minimum height in pixels of the dropdown list when the list is constrained by its
-distance to the viewport edges... The minimum height in pixels of the dropdown list when the list is constrained by its
+validation fails (defaults to 'The maximum length for this field is {maxLength}') | TextField |
| minChars : NumberThe minimum number of characters the user must type before autocomplete and
+typeAhead activate (defaults to 4 if mode... The minimum number of characters the user must type before autocomplete and
+ typeAhead activate (defaults to 4 if mode = 'remote' or 0 if
+ mode = 'local', does not apply if
+ editable = false). | ComboBox |
| minHeight : NumberThe minimum height in pixels of the dropdown list when the list is constrained by its
+distance to the viewport edges ... The minimum height in pixels of the dropdown list when the list is constrained by its
distance to the viewport edges (defaults to 90) | ComboBox |
| minLength : Number Minimum input field length required (defaults to 0) | TextField |
| minLengthText : StringError text to display if the minimum length
validation fails (defaults to 'The minimum length for this field is {minL... Error text to display if the minimum length
-validation fails (defaults to 'The minimum length for this field is {minLength}') | TextField |
| minListWidth : NumberThe minimum width of the dropdown list in pixels (defaults to 70, will
-be ignored if listWidth has a higher value) | ComboBox |
| mode : StringAcceptable values are:
-<div class="mdetail-params">
-'remote' : Default
-<p class="sub-desc">Automatically loads the... Acceptable values are:
-
-- 'remote' : Default
-
Automatically loads the store the first time the trigger
-is clicked. If you do not want the store to be automatically loaded the first time the trigger is
-clicked, set to 'local' and manually load the store. To force a requery of the store
-every time the trigger is clicked see lastQuery.
-- 'local' :
-
ComboBox loads local data
-var combo = new Ext.form.ComboBox({
- renderTo: document.body,
- mode: 'local',
- store: new Ext.data.ArrayStore({
- id: 0,
- fields: [
- 'myId', // numeric value is the key
- 'displayText'
- ],
- data: [[1, 'item1'], [2, 'item2']] // data is local
- }),
- valueField: 'myId',
- displayField: 'displayText',
- triggerAction: 'all'
-});
+validation fails (defaults to 'The minimum length for this field is {minLength}') | TextField |
| minListWidth : NumberThe minimum width of the dropdown list in pixels (defaults to 70, will
+be ignored if listWidth has a higher value) | ComboBox |
| mode : StringAcceptable values are:
+<div class="mdetail-params">
+'remote' : Default
+<p class="sub-desc">Automatically loads the st... Acceptable values are:
+
+- 'remote' : Default
+
Automatically loads the store the first time the trigger
+is clicked. If you do not want the store to be automatically loaded the first time the trigger is
+clicked, set to 'local' and manually load the store. To force a requery of the store
+every time the trigger is clicked see lastQuery.
+- 'local' :
+
ComboBox loads local data
+var combo = new Ext.form.ComboBox({
+ renderTo: document.body,
+ mode: 'local',
+ store: new Ext.data.ArrayStore({
+ id: 0,
+ fields: [
+ 'myId', // numeric value is the key
+ 'displayText'
+ ],
+ data: [[1, 'item1'], [2, 'item2']] // data is local
+ }),
+ valueField: 'myId',
+ displayField: 'displayText',
+ triggerAction: 'all'
+});
| ComboBox |
| msgFx : String Experimental The effect used when displaying a validation message under the field
-(defaults to 'normal'). | Field |
| msgTarget : StringThe location where error text should display. Should be one of the following values
-(defaults to 'qtip'):
-
-Value ... The location where error text should display. Should be one of the following values
-(defaults to 'qtip'):
-
-Value Description
------------ ----------------------------------------------------------------------
-qtip Display a quick tip when the user hovers over the field
-title Display a default browser title attribute popup
-under Add a block div beneath the field containing the error text
-side Add an error icon to the right of the field with a popup on hover
-[element id] Add the error text directly to the innerHTML of the specified element
- | Field |
| name : StringThe field's HTML name attribute (defaults to '').
+(defaults to 'normal'). | Field |
| msgTarget<p>The : Stringlocation where the message text set through markInvalid should display.
+Must be one of the following values:
+<div cl... location where the message text set through markInvalid should display.
+Must be one of the following values:
+
+qtip Display a quick tip containing the message when the user hovers over the field. This is the default.
+
+title Display the message in a default browser title attribute popup.
+under Add a block div beneath the field containing the error message.
+side Add an error icon to the right of the field, displaying the message in a popup on hover.
+[element id] Add the error message directly to the innerHTML of the specified element.
+ | Field |
| name : StringThe field's HTML name attribute (defaults to '').
Note: this property must be set if this field is to be automaticall... The field's HTML name attribute (defaults to '').
Note: this property must be set if this field is to be automatically included with
form submit(). | Field |
| overCls : StringAn optional extra CSS class that will be added to this component's Element when the mouse moves
over the Element, and... An optional extra CSS class that will be added to this component's Element when the mouse moves
over the Element, and removed when the mouse moves out. (defaults to ''). This can be
-useful for adding customized 'active' or 'hover' styles to the component or any of its children using standard CSS rules. | Component |
| pageSize : NumberIf greater than 0, a Ext.PagingToolbar is displayed in the
-footer of the dropdown list and the filter queries will e... If greater than 0, a Ext.PagingToolbar is displayed in the
-footer of the dropdown list and the filter queries will execute with page start and
- limit parameters. Only applies when mode = 'remote'
+useful for adding customized 'active' or 'hover' styles to the component or any of its children using standard CSS rules. | Component |
| pageSize : NumberIf greater than 0, a Ext.PagingToolbar is displayed in the
+footer of the dropdown list and the filter queries will ex... If greater than 0, a Ext.PagingToolbar is displayed in the
+footer of the dropdown list and the filter queries will execute with page start and
+ limit parameters. Only applies when mode = 'remote'
(defaults to 0). | ComboBox |
| 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 |
| plugins : Object/ArrayAn object or array of objects that will provide custom functionality for this component. The only
requirement for a ... An object or array of objects that will provide custom functionality for this component. The only
requirement for a valid plugin is that it contain an init method that accepts a reference of type Ext.Component.
@@ -490,21 +518,16 @@ object. The ptype will be looked up at render time up to determine
type of Plugin to create.
If you create your own Plugins, you may register them using
Ext.ComponentMgr.registerPlugin in order to be able to
-take advantage of lazy instantiation and rendering. | Component |
| queryDelay : NumberThe length of time in milliseconds to delay between the start of typing and
-sending the query to filter the dropdown... The length of time in milliseconds to delay between the start of typing and
-sending the query to filter the dropdown list (defaults to 500 if mode = 'remote'
-or 10 if mode = 'local') | ComboBox |
| queryParam : StringName of the query ( baseParam name for the store)
-as it will be passed on the querystring (defaults to 'query') | ComboBox |
| readOnly : Booleantrue to mark the field as readOnly in HTML
-(defaults to false).
-Note: this only sets the element's readOnly DOM attri... true to mark the field as readOnly in HTML
-(defaults to false).
- Note: this only sets the element's readOnly DOM attribute.
-Setting readOnly=true , for example, will not disable triggering a
-ComboBox or DateField; it gives you the option of forcing the user to choose
-via the trigger without typing in the text box. To hide the trigger use
-hideTrigger . | Field |
| ref : StringA path specification, relative to the Component's ownerCt specifying into which
-ancestor Container to place a named r... A path specification, relative to the Component's ownerCt specifying into which
-ancestor Container to place a named reference to this Component.
+take advantage of lazy instantiation and rendering. | Component |
| queryDelay : NumberThe length of time in milliseconds to delay between the start of typing and
+sending the query to filter the dropdown ... The length of time in milliseconds to delay between the start of typing and
+sending the query to filter the dropdown list (defaults to 500 if mode = 'remote'
+or 10 if mode = 'local') | ComboBox |
| queryParam : StringName of the query ( baseParam name for the store)
+as it will be passed on the querystring (defaults to 'query') | ComboBox |
| readOnly : Booleantrue to prevent the user from changing the field, and
+hides the trigger. Superceeds the editable and hideTrigger opt... true to prevent the user from changing the field, and
+hides the trigger. Superceeds the editable and hideTrigger options if the value is true.
+(defaults to false) | TriggerField |
| ref : StringA path specification, relative to the Component's ownerCt
+specifying into which ancestor Container to place a named r... A path specification, relative to the Component's ownerCt
+specifying into which ancestor Container to place a named reference to this Component.
The ancestor axis can be traversed by using '/' characters in the path.
For example, to put a reference to a Toolbar Button into the Panel which owns the Toolbar: var myGrid = new Ext.grid.EditorGridPanel({
title: 'My EditorGridPanel',
@@ -523,9 +546,10 @@ For example, to put a reference to a Toolbar Button into the Panel which owns
}
}
});
- In the code above, if the ref had been 'saveButton' the reference would
-have been placed into the Toolbar. Each '/' in the ref moves up one level from the
-Component's ownerCt. | Component |
| regex : RegExpA JavaScript RegExp object to be tested against the field value during validation
+ In the code above, if the ref had been 'saveButton'
+the reference would have been placed into the Toolbar. Each '/' in the ref
+moves up one level from the Component's ownerCt .
+ Also see the added and removed events. | Component |
| regex : RegExpA JavaScript RegExp object to be tested against the field value during validation
(defaults to null). If the test fai... A JavaScript RegExp object to be tested against the field value during validation
(defaults to null). If the test fails, the field will be marked invalid using
regexText. | TextField |
| regexText : StringThe error text to display if regex is used and the
@@ -545,15 +569,16 @@ to render and manage its child items.
When using this config, a call to render() is not required.
-See render also. | Component |
| resizable : Booleantrue to add a resize handle to the bottom of the dropdown list
-(creates an Ext.Resizable with 'se' pinned handles).
... true to add a resize handle to the bottom of the dropdown list
-(creates an Ext.Resizable with 'se' pinned handles).
-Defaults to false. | ComboBox |
| selectOnFocus : Booleantrue to select any existing text in the field immediately on focus.
-Only applies when editable = true (defaults to
-... true to select any existing text in the field immediately on focus.
-Only applies when editable = true (defaults to
- false). | ComboBox |
| selectedClass : String CSS class to apply to the selected item in the dropdown list
-(defaults to 'x-combo-selected') | ComboBox |
| shadow : Boolean/Stringtrue or "sides" for the default effect, "frame" for
+ See render also. | Component |
| resizable : Booleantrue to add a resize handle to the bottom of the dropdown list
+(creates an Ext.Resizable with 'se' pinned handles).
+D... true to add a resize handle to the bottom of the dropdown list
+(creates an Ext.Resizable with 'se' pinned handles).
+Defaults to false. | ComboBox |
| selectOnFocus : Booleantrue to select any existing text in the field immediately on focus.
+Only applies when editable = true (defaults to
+fa... true to select any existing text in the field immediately on focus.
+Only applies when editable = true (defaults to
+ false). | ComboBox |
| selectedClass : String CSS class to apply to the selected item in the dropdown list
+(defaults to 'x-combo-selected') | ComboBox |
| shadow : Boolean/String true or "sides" for the default effect, "frame" for
4-way shadow, and "drop" for bottom-right | ComboBox |
| stateEvents : ArrayAn array of events that, when fired, should trigger this component to
save its state (defaults to none). stateEvents ... An array of events that, when fired, should trigger this component to
save its state (defaults to none). stateEvents may be any type
@@ -601,22 +626,22 @@ properties into the object, but a developer may override this to support
more behaviour.
You can perform extra processing on state save and restore by attaching
handlers to the beforestaterestore, staterestore,
-beforestatesave and statesave events. | Component |
| store : Ext.data.Store/ArrayThe data source to which this combo is bound (defaults to undefined).
-Acceptable values for this property are:
-<div... | Component |
| store : Ext.data.Store/ArrayThe data source to which this combo is bound (defaults to undefined).
Acceptable values for this property are:
-
-- any Store subclass
-- an Array : Arrays will be converted to a Ext.data.ArrayStore internally,
-automatically generating field names to work with all data components.
-
-- 1-dimensional array : (e.g., ['Foo','Bar'])
-A 1-dimensional array will automatically be expanded (each array item will be used for both the combo
- valueField and displayField)
-- 2-dimensional array : (e.g., [['f','Foo'],['b','Bar']])
-For a multi-dimensional array, the value in index 0 of each item will be assumed to be the combo
- valueField, while the value at index 1 is assumed to be the combo displayField.
-
+<div c... The data source to which this combo is bound (defaults to undefined).
+Acceptable values for this property are:
+
+- any Store subclass
+- an Array : Arrays will be converted to a Ext.data.ArrayStore internally,
+automatically generating field names to work with all data components.
+
+- 1-dimensional array : (e.g., ['Foo','Bar'])
+A 1-dimensional array will automatically be expanded (each array item will be used for both the combo
+ valueField and displayField)
+- 2-dimensional array : (e.g., [['f','Foo'],['b','Bar']])
+For a multi-dimensional array, the value in index 0 of each item will be assumed to be the combo
+ valueField, while the value at index 1 is assumed to be the combo displayField.
+
See also mode. | ComboBox |
| stripCharsRe : RegExp A JavaScript RegExp object used to strip unwanted content from the value
before validation (defaults to null). | TextField |
| style : StringA custom style specification to be applied to this component's Element. Should be a valid argument to
Ext.Element.ap... A custom style specification to be applied to this component's Element. Should be a valid argument to
@@ -641,54 +666,61 @@ Ext.Element.ap... A custom style specification to be appl
}
})
]
-}); | Component |
| tabIndex : NumberThe tabIndex for this field. Note this only applies to fields that are rendered,
+}); | Component |
| submitValue : BooleanFalse to clear the name attribute on the field so that it is not submitted during a form post.
+If a hiddenName is spe... False to clear the name attribute on the field so that it is not submitted during a form post.
+If a hiddenName is specified, setting this to true will cause both the hidden field and the element to be submitted.
+Defaults to undefined. | ComboBox |
| tabIndex : NumberThe tabIndex for this field. Note this only applies to fields that are rendered,
not those which are built via applyT... The tabIndex for this field. Note this only applies to fields that are rendered,
not those which are built via applyTo (defaults to undefined). | Field |
| tabTip : StringNote: this config is only used when this BoxComponent is a child item of a TabPanel.
A string to be used as innerHTML... Note: this config is only used when this BoxComponent is a child item of a TabPanel.
A string to be used as innerHTML (html tags are accepted) to show in a tooltip when mousing over
the associated tab selector element. Ext.QuickTips.init()
-must be called in order for the tips to render. | BoxComponent |
| title : StringIf supplied, a header element is created containing this text and added into the top of
-the dropdown list (defaults ... If supplied, a header element is created containing this text and added into the top of
-the dropdown list (defaults to undefined, with no header element) | ComboBox |
| tpl : String/Ext.XTemplateThe template string, or Ext.XTemplate instance to
-use to display each item in the dropdown list. The dropdown list i... The template string, or Ext.XTemplate instance to
-use to display each item in the dropdown list. The dropdown list is displayed in a
-DataView. See view.
- The default template string is: '<tpl for="."><div class="x-combo-list-item">{' + this.displayField + '}</div></tpl>'
- Override the default value to create custom UI layouts for items in the list.
-For example: '<tpl for="."><div ext:qtip="{state}. {nick}" class="x-combo-list-item">{state}</div></tpl>'
- The template must contain one or more substitution parameters using field
-names from the Combo's Store. In the example above an
- ext:qtip attribute is added to display other fields from the Store.
- To preserve the default visual look of list items, add the CSS class name
- x-combo-list-item to the template's container element.
- Also see itemSelector for additional details. | ComboBox |
| transform : MixedThe id, DOM node or element of an existing HTML SELECT to convert to a ComboBox.
-Note that if you specify this and t... | ComboBox |
| triggerAction : StringThe action to execute when the trigger is clicked.
-<div class="mdetail-params">
-'query' : Default
-<p class="sub-de... The action to execute when the trigger is clicked.
-
- See also queryParam . | ComboBox |
| triggerClass : StringAn additional CSS class used to style the trigger button. The trigger will always
-get the class 'x-form-trigger' an... An additional CSS class used to style the trigger button. The trigger will always
-get the class 'x-form-trigger' and triggerClass will be appended if specified
-(defaults to 'x-form-arrow-trigger' which displays a downward arrow icon). | ComboBox |
| triggerConfig : MixedA DomHelper config object specifying the structure of the
-trigger element for this Field. (Optional).
-Specify this ... A DomHelper config object specifying the structure of the
-trigger element for this Field. (Optional).
- Specify this when you need a customized element to act as the trigger button for a TriggerField.
- Note that when using this option, it is the developer's responsibility to ensure correct sizing, positioning
-and appearance of the trigger. Defaults to:
- {tag: "img", src: Ext.BLANK_IMAGE_URL, cls: "x-form-trigger " + this.triggerClass}
| TriggerField |
| typeAhead : Booleantrue to populate and autoselect the remainder of the text being
-typed after a configurable delay (typeAheadDelay) if... true to populate and autoselect the remainder of the text being
-typed after a configurable delay ( typeAheadDelay) if it matches a known value (defaults
-to false) | ComboBox |
| typeAheadDelay : NumberThe length of time in milliseconds to wait until the typeahead text is displayed
-if typeAhead = true (defaults to 25... The length of time in milliseconds to wait until the typeahead text is displayed
+must be called in order for the tips to render. | BoxComponent |
| title : StringIf supplied, a header element is created containing this text and added into the top of
+the dropdown list (defaults t... If supplied, a header element is created containing this text and added into the top of
+the dropdown list (defaults to undefined, with no header element) | ComboBox |
| tpl : String/Ext.XTemplateThe template string, or Ext.XTemplate instance to
+use to display each item in the dropdown list. The dropdown list is... The template string, or Ext.XTemplate instance to
+use to display each item in the dropdown list. The dropdown list is displayed in a
+DataView. See view.
+ The default template string is: '<tpl for="."><div class="x-combo-list-item">{' + this.displayField + '}</div></tpl>'
+ Override the default value to create custom UI layouts for items in the list.
+For example: '<tpl for="."><div ext:qtip="{state}. {nick}" class="x-combo-list-item">{state}</div></tpl>'
+ The template must contain one or more substitution parameters using field
+names from the Combo's Store. In the example above an
+ ext:qtip attribute is added to display other fields from the Store.
+ To preserve the default visual look of list items, add the CSS class name
+ x-combo-list-item to the template's container element.
+ Also see itemSelector for additional details. | ComboBox |
| tplWriteMode : StringThe Ext.(X)Template method to use when
+updating the content area of the Component. Defaults to 'overwrite'
+(see Ext.X... The Ext.(X)Template method to use when
+updating the content area of the Component. Defaults to 'overwrite'
+(see Ext.XTemplate.overwrite ). | Component |
| transform : MixedThe id, DOM node or element of an existing HTML SELECT to convert to a ComboBox.
+Note that if you specify this and th... | ComboBox |
| triggerAction : StringThe action to execute when the trigger is clicked.
+<div class="mdetail-params">
+'query' : Default
+<p class="sub-desc"... The action to execute when the trigger is clicked.
+
+ See also queryParam . | ComboBox |
| triggerClass : StringAn additional CSS class used to style the trigger button. The trigger will always
+get the class 'x-form-trigger' and... An additional CSS class used to style the trigger button. The trigger will always
+get the class 'x-form-trigger' and triggerClass will be appended if specified
+(defaults to 'x-form-arrow-trigger' which displays a downward arrow icon). | ComboBox |
| triggerConfig : MixedA DomHelper config object specifying the structure of the
+trigger element for this Field. (Optional).
+Specify this wh... A DomHelper config object specifying the structure of the
+trigger element for this Field. (Optional).
+ Specify this when you need a customized element to act as the trigger button for a TriggerField.
+ Note that when using this option, it is the developer's responsibility to ensure correct sizing, positioning
+and appearance of the trigger. Defaults to:
+ {tag: "img", src: Ext.BLANK_IMAGE_URL, cls: "x-form-trigger " + this.triggerClass}
| TriggerField |
| typeAhead : Booleantrue to populate and autoselect the remainder of the text being
+typed after a configurable delay (typeAheadDelay) if ... true to populate and autoselect the remainder of the text being
+typed after a configurable delay ( typeAheadDelay) if it matches a known value (defaults
+to false) | ComboBox |
| typeAheadDelay : NumberThe length of time in milliseconds to wait until the typeahead text is displayed
+if typeAhead = true (defaults to 250... The length of time in milliseconds to wait until the typeahead text is displayed
if typeAhead = true (defaults to 250) | ComboBox |
| 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/BooleanThe event that should initiate field validation. Set to false to disable
automatic validation (defaults to 'key... The event that should initiate field validation. Set to false to disable
@@ -707,22 +739,22 @@ developer to override the default validation process.
true if the value is valid
msg : String
An error message if the value is invalid
- | TextField |
| value : Mixed A value to initialize this field with (defaults to undefined). | Field |
| valueField : StringThe underlying data value name to bind to this
-ComboBox (defaults to undefined if mode = 'remote' or 'field2' if
-tr... | ComboBox |
| valueNotFoundText : StringWhen using a name/value combo, if the value passed to setValue is not found in
-the store, valueNotFoundText will be ... When using a name/value combo, if the value passed to setValue is not found in
-the store, valueNotFoundText will be displayed as the field text if defined (defaults to undefined). If this
+ | TextField |
| value : Mixed A value to initialize this field with (defaults to undefined). | Field |
| valueField : StringThe underlying data value name to bind to this
+ComboBox (defaults to undefined if mode = 'remote' or 'field2' if
+tran... | ComboBox |
| valueNotFoundText : StringWhen using a name/value combo, if the value passed to setValue is not found in
+the store, valueNotFoundText will be d... When using a name/value combo, if the value passed to setValue is not found in
+the store, valueNotFoundText will be displayed as the field text if defined (defaults to undefined). If this
default text is used, it means there is no value set and no validation will occur on this field. | ComboBox |
| vtype : String | TextField |
| vtypeText : StringA custom error message to display in place of the default message provided
for the vtype currently set for this field... A custom error message to display in place of the default message provided
for the vtype currently set for this field (defaults to ''). Note:
only applies if vtype is set, else ignored. | TextField |
| width : NumberThe width of this component in pixels (defaults to auto).
Note to express this dimension as a percentage or offset se... The width of this component in pixels (defaults to auto).
- Note to express this dimension as a percentage or offset see Ext.Component.anchor. | BoxComponent |
| wrapFocusClass : StringThe class added to the to the wrap of the trigger element. Defaults to
+ Note to express this dimension as a percentage or offset see Ext.Component.anchor. | BoxComponent |
| wrapFocusClass : String The class added to the to the wrap of the trigger element. Defaults to
x-trigger-wrap-focus. | TriggerField |
| x : Number The local x (left) coordinate for this component if contained within a positioning container. | BoxComponent |
| xtype : StringThe registered xtype to create. This config option is not used when passing
a config object into a constructor. This ... The registered xtype to create. This config option is not used when passing
a config object into a constructor. This config option is used only when
@@ -751,37 +783,44 @@ config for a suggestion, or use a render listener directly: new
single: true // Remove the listener after first invocation
}
});
- See also getEl | Component |
| hidden : Boolean True if this component is hidden. Read-only. | Component |
| initialConfig : Object This Component's initial configuration specification. Read-only. | Component |
| lastQuery : StringThe value of the match string used to filter the store. Delete this property to force a requery.
-Example use:
-var c... The value of the match string used to filter the store. Delete this property to force a requery.
+ See also getEl | Component |
| hidden : Boolean True if this component is hidden. Read-only. | Component |
| initialConfig : Object This Component's initial configuration specification. Read-only. | Component |
| label : Ext.ElementThe label Element associated with this Field. Only available after this Field has been rendered by a
+Ext.layout.FormL... The label Element associated with this Field. Only available after this Field has been rendered by a
+Ext.layout.FormLayout layout manager. | Field |
| lastQuery : StringThe value of the match string used to filter the store. Delete this property to force a requery.
Example use:
- var combo = new Ext.form.ComboBox({
- ...
- mode: 'remote',
- ...
- listeners: {
- // delete the previous query in the beforequery event or set
- // combo.lastQuery = null (this will reload the store the next time it expands)
- beforequery: function(qe){
- delete qe.combo.lastQuery;
- }
- }
-});
-To make sure the filter in the store is not cleared the first time the ComboBox trigger is used
-configure the combo with lastQuery=''. Example use:
- var combo = new Ext.form.ComboBox({
- ...
- mode: 'local',
- triggerAction: 'all',
- lastQuery: ''
+var com...
The value of the match string used to filter the store. Delete this property to force a requery.
+Example use:
+ var combo = new Ext.form.ComboBox({
+ ...
+ mode: 'remote',
+ ...
+ listeners: {
+ // delete the previous query in the beforequery event or set
+ // combo.lastQuery = null (this will reload the store the next time it expands)
+ beforequery: function(qe){
+ delete qe.combo.lastQuery;
+ }
+ }
+});
+To make sure the filter in the store is not cleared the first time the ComboBox trigger is used
+configure the combo with lastQuery=''. Example use:
+ var combo = new Ext.form.ComboBox({
+ ...
+ mode: 'local',
+ triggerAction: 'all',
+ lastQuery: ''
});
| ComboBox |
| originalValue : mixedThe original value of the field as configured in the value configuration, or
as loaded by the last form load operatio... The original value of the field as configured in the value configuration, or
as loaded by the last form load operation if the form's trackResetOnLoad
setting is true . | Field |
| ownerCt : Ext.ContainerThis Component's owner Container (defaults to undefined, and is set automatically when
this Component is added to a C... This Component's owner Container (defaults to undefined, and is set automatically when
this Component is added to a Container). Read-only.
- Note: to access items within the Container see itemId. | Component |
| rendered : Boolean True if this component has been rendered. Read-only. | Component |
| view : Ext.DataViewThe DataView used to display the ComboBox's options. | ComboBox |