X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/2e847cf21b8ab9d15fa167b315ca5b2fa92638fc..c8256059947f3aa8f5b0a9a2acf55e2142bb4742:/docs/output/Ext.form.ComboBox.html diff --git a/docs/output/Ext.form.ComboBox.html b/docs/output/Ext.form.ComboBox.html index 835a033c..c44f8beb 100644 --- a/docs/output/Ext.form.ComboBox.html +++ b/docs/output/Ext.form.ComboBox.html @@ -1,4 +1,4 @@ -
Package: | Ext.form |
Defined In: | Combo.js |
Class: | ComboBox |
Subclasses: | TimeField |
Extends: | TriggerField |
A combobox control with support for autocomplete, remote-loading, paging and many other features.
+Package: | Ext.form |
Defined In: | Combo.js |
Class: | ComboBox |
Subclasses: | TimeField |
Extends: | TriggerField |
A combobox control with support for autocomplete, remote-loading, paging and many other features.
A ComboBox works in a similar manner to a traditional HTML <select> field. The difference is that to submit the valueField, you must specify a hiddenName to create a hidden input field to hold the value of the valueField. The displayField is shown in the text field @@ -192,7 +192,10 @@ Warning: This will override any size manag...
The maxi 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.
The minimum value in pixels which this BoxComponent will set its width to.
-Warning: This will override any size management applied by layout managers.
Warning: This will override any size management applied by layout managers.
An array of events that, when fired, should be bubbled to any parent container. +See Ext.util.Observable.enableBubble. +Defaults to [].
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').
@@ -584,9 +587,9 @@ clicked, set to 'local' and manually load the store. To force a requer triggerAction: 'all' });The 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.
@@ -595,7 +598,7 @@ Must be one of the following values:
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.new
single: true // Remove the listener after first invocation
}
});
-See also getEl
See also getEl
The label Element associated with this Field. Only available after this Field has been rendered by a Ext.layout.FormLayout layout manager.
Ext.Component
String/Array events
)
:
- voidEnables events fired by this Observable to bubble up an owner hierarchy by calling
-this.getBubbleTarget()
if present. There is no implementation in the Observable base class.
This is commonly used by Ext.Components to bubble events to owner Containers. See Ext.Component.getBubbleTarget. The default -implementation in Ext.Component returns the Component's immediate owner. But if a known target is required, this can be overridden to -access the required target more quickly.
-Example:
Ext.override(Ext.form.Field, {
- // Add functionality to Field's initComponent to enable the change event to bubble
- initComponent : Ext.form.Field.prototype.initComponent.createSequence(function() {
- this.enableBubble('change');
- }),
-
- // We know that we want Field's events to bubble directly to the FormPanel.
- getBubbleTarget : function() {
- if (!this.formPanel) {
- this.formPanel = this.findParentByType('form');
- }
- return this.formPanel;
- }
-});
-
-var myForm = new Ext.formPanel({
- title: 'User Details',
- items: [{
- ...
- }],
- listeners: {
- change: function() {
- // Title goes red if form has been modified.
- myForm.header.setStyle('color', 'red');
- }
- }
+ voidEnables events fired by this Observable to bubble up an owner hierarchy by calling
+this.getBubbleTarget() if present....Enables events fired by this Observable to bubble up an owner hierarchy by calling
+this.getBubbleTarget()
if present. There is no implementation in the Observable base class.
+This is commonly used by Ext.Components to bubble events to owner Containers. See Ext.Component.getBubbleTarget. The default
+implementation in Ext.Component returns the Component's immediate owner. But if a known target is required, this can be overridden to
+access the required target more quickly.
+Example:
Ext.override(Ext.form.Field, {
+ // Add functionality to Field's initComponent to enable the change event to bubble
+ initComponent : Ext.form.Field.prototype.initComponent.createSequence(function() {
+ this.enableBubble('change');
+ }),
+
+ // We know that we want Field's events to bubble directly to the FormPanel.
+ getBubbleTarget : function() {
+ if (!this.formPanel) {
+ this.formPanel = this.findParentByType('form');
+ }
+ return this.formPanel;
+ }
+});
+
+var myForm = new Ext.formPanel({
+ title: 'User Details',
+ items: [{
+ ...
+ }],
+ listeners: {
+ change: function() {
+ // Title goes red if form has been modified.
+ myForm.header.setStyle('color', 'red');
+ }
+ }
});
Parameters:events
: String/ArrayThe event name to bubble, or an Array of event names.
Returns:- void
Function fn
)
@@ -1079,7 +1095,63 @@ or use a render listener directly:new Ext.Panel({
},
single: true // Remove the listener after first invocation
}
-});
Ext.Element
Ext.Element
Mixed value
)
+ :
+ ArrayValidates a value according to the field's validation rules and returns an array of errors +for any failing validations. Validation rules are processed in the following order:
+A validator offers a way to customize and reuse a validation specification.
+If a field is configured with a validator
+function, it will be passed the current field value. The validator
+function is expected to return either:
+
If the validator
has not halted validation,
+basic validation proceeds as follows:
allowBlank
: (Invalid message =
+emptyText
)allowBlank
, a
+blank field will cause validation to halt at this step and return
+Boolean true or false accordingly.
+minLength
: (Invalid message =
+minLengthText
)minLength
+specified, validation halts.
+maxLength
: (Invalid message =
+maxLengthText
)maxLength
+specified, validation halts.
+If none of the prior validation steps halts validation, a field
+configured with a vtype
will utilize the
+corresponding VTypes validation function.
+If invalid, either the field's vtypeText
or
+the VTypes vtype Text property will be used for the invalid message.
+Keystrokes on the field will be filtered according to the VTypes
+vtype Mask property.
value
: MixedArray
Number
value
: StringscrollIntoView
: BooleanBoolean
Number start
], [Number end
] )
:
- voidstart
: Numberend
: NumberBoolean scroll
)
+ voidstart
: Numberend
: NumberString msg
, Boolean suppressEvent
)
+ :
+ voidmsg
: StringsuppressEvent
: BooleanBoolean scroll
)
:
Ext.BoxComponentscroll
: BooleanExt.BoxComponent
Boolean disabled
)
:
@@ -1314,10 +1391,10 @@ selected item if it is not currently in view (defaults to true)<
Allow or prevent the user from directly editing the field text. If false is passed,
the user will only be able to modify the field using the trigger. Will also add
a click event to the text field which will call the trigger. This method
-is the runtime equivalent of setting the 'editable' config option at config time.Returns:Number height
)
+is the runtime equivalent of setting the 'editable' config option at config time.Returns:Mixed height
)
:
- Ext.BoxComponentheight
: Numberheight
: MixedExt.BoxComponent
Number x
, Number y
)
@@ -1358,10 +1435,10 @@ will be displayed in the field. If the value does not match the data value of a
and the valueNotFoundText config option is defined, it will be displayed as the default field text.
Otherwise the field will be blank (although the value will still be set).value
: StringExt.form.Field
Boolean visible
)
:
- Ext.Componentvisible
: BooleanExt.Component
Number width
)
+ Ext.Componentvisible
: BooleanExt.Component
Mixed width
)
:
- Ext.BoxComponentwidth
: Numberwidth
: MixedExt.BoxComponent
Ext.BoxComponent
String eventName
, Function handler
, [Object scope
] )
:
- voideventName
: Stringhandler
: Functionscope
: ObjectMixed htmlOrData
, [Boolean loadScripts
], [Function callback
] )
+ voideventName
: Stringhandler
: Functionscope
: ObjectBoolean suppressEvent
)
+ :
+ voidsuppressEvent
: BooleanMixed htmlOrData
, [Boolean loadScripts
], [Function callback
] )
:
voidhtmlOrData
: MixedloadScri
:
Ext.BoxComponentSets the current box measurements of the component's underlying element.Sets the current box measurements of the component's underlying element.Parameters:box
: ObjectAn object in the format {x, y, width, height}
Returns:Ext.BoxComponent
this
Boolean
Mixed value
)
+ BooleanBoolean
Mixed The
)
:
- BooleanValidates a value according to the field's validation rules and marks the field as invalid -if the validation fails. Validation rules are processed in the following order:
-A validator offers a way to customize and reuse a validation specification.
-If a field is configured with a validator
-function, it will be passed the current field value. The validator
-function is expected to return either:
-
If the validator
has not halted validation,
-basic validation proceeds as follows:
allowBlank
: (Invalid message =
-emptyText
)allowBlank
, a
-blank field will cause validation to halt at this step and return
-Boolean true or false accordingly.
-minLength
: (Invalid message =
-minLengthText
)minLength
-specified, validation halts.
-maxLength
: (Invalid message =
-maxLengthText
)maxLength
-specified, validation halts.
-If none of the prior validation steps halts validation, a field
-configured with a vtype
will utilize the
-corresponding VTypes validation function.
-If invalid, either the field's vtypeText
or
-the VTypes vtype Text property will be used for the invalid message.
-Keystrokes on the field will be filtered according to the VTypes
-vtype Mask property.
value
: MixedBoolean
Event | Defined By | |
---|---|---|
added :
+ Boolean Uses getErrors to build an array of validation errors. If any errors are found, markInvalid is called
+with the first ... Uses getErrors to build an array of validation errors. If any errors are found, markInvalid is called
+with the first and false is returned, otherwise true is returned. Previously, subclasses were invited
+to provide an implementation of this to process validations - from 3.2 onwards getErrors should be
+overridden instead. Parameters:
| Field |
Event | Defined By | |
---|---|---|
added :
( Ext.Component this , Ext.Container ownerCt , number index )
Fires when a component is added to an Ext.Container Fires when a component is added to an Ext.Container Listeners will be called with the following arguments:
| Component | |
afterrender :
( Ext.Component this )
|