X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/25ef3491bd9ae007ff1fc2b0d7943e6eaaccf775..10a866c12701c0a0afd0ac85dcdcf32a421514ac:/docs/output/Ext.form.TextField.html?ds=sidebyside diff --git a/docs/output/Ext.form.TextField.html b/docs/output/Ext.form.TextField.html index 5947c1a0..42296253 100644 --- a/docs/output/Ext.form.TextField.html +++ b/docs/output/Ext.form.TextField.html @@ -1,4 +1,4 @@ -
Observable Component BoxComponent Field TextField
Package: | Ext.form |
Defined In: | TextField.js |
Class: | TextField |
Subclasses: | NumberField, TextArea, TriggerField, FileUploadField |
Extends: | Field |
xtype: | textfield |
Basic text field. Can be used as a direct replacement for traditional text inputs, +
Observable Component BoxComponent Field TextField
Package: | Ext.form |
Defined In: | TextField.js |
Class: | TextField |
Subclasses: | NumberField, TextArea, TriggerField |
Extends: | Field |
Basic text field. Can be used as a direct replacement for traditional text inputs, or as the base class for more sophisticated input controls (like Ext.form.TextArea and Ext.form.ComboBox).
Validation
@@ -102,7 +102,9 @@ result in elements needing to be synchronized with the new height. Example:< } } } -}).show();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
).True to use width:'auto', false to use fixed width (or allow it to be managed by its parent @@ -135,7 +137,15 @@ child items when the browser changes its width:
var myPanel = <
title: 'Box 3'
}],
});
The maximum value in pixels which this BoxComponent will set its height to.
+Warning: This will override any size management applied by layout managers.
The maximum value in pixels which this BoxComponent will set its width to.
+Warning: This will override any size management applied by layout managers.
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.
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').
@@ -143,7 +153,21 @@ 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.
See Ext.layout.FormLayout.fieldTpl also.
Optional. Specify an existing HTML element, or the id
of an existing HTML element to use as the content
+for this component.
layout
+scheme that the Component may use. It is just HTML. Layouts operate on child items
.x-hidden
or the x-hide-display
CSS class to
+prevent a brief flicker of the content before it is rendered to the panel.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.
@@ -154,7 +178,8 @@ which assigns a value by default:ctCls: 'x-box-layout-ct custom-class'
-tpl
to
+update the content area of the Component.Be aware that conformant with the HTML specification, @@ -209,7 +234,11 @@ since items are automatically laid out when they are first shown (no sizing is done while hidden).
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).
@@ -420,20 +449,18 @@ validation fails (defaults to 'The maximum length for this field is {maxL...'The maximum length for this field is {maxLength}')-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 -
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.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
.A path specification, relative to the Component's ownerCt specifying into which -ancestor Container to place a named reference to this Component.
+hideTrigger
.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',
@@ -483,9 +510,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.
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
.
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.data
and
+tplWriteMode
configurations.Ext.XTemplate.overwrite
).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.
true
.Method | Defined By | |||
---|---|---|---|---|
TextField( Object config )
- Creates a new TextField Creates a new TextField Parameters:
| TextField | |||
addClass( string cls )
+Note: to access items within the Container see itemId. | Component | |||
refOwner : Ext.Container The ancestor Container into which the ref reference was inserted if this Component
+is a child of a Container, and has... The ancestor Container into which the ref reference was inserted if this Component
+is a child of a Container, and has been configured with a ref . | Component | |||
rendered : Boolean True if this component has been rendered. Read-only. | Component | |||
startValue : mixed The value that the Field had at the time it was last focused. This is the value that is passed
+to the change event wh... The value that the Field had at the time it was last focused. This is the value that is passed +to the change event which is fired if the value has been changed when the Field is blurred. +This will be undefined until the Field has been visited. Compare originalValue. | Field |
Method | Defined By | |
---|---|---|
TextField( Object config )
+ Creates a new TextField Creates a new TextField Parameters:
| TextField | |
addClass( string cls )
:
Ext.ComponentAdds a CSS class to the component's underlying element. Adds a CSS class to the component's underlying element. Parameters:
| Component | |
addEvents( Object|String o , string Optional. )
:
@@ -719,7 +764,7 @@ should usually not need to be called directly.Disable this component and fire the 'disable' event. Disable this component and fire the 'disable' event. Parameters:
| Component | |
enable()
:
- Ext.Component Enable this component and fire the 'enable' event. Enable this component and fire the 'enable' event. Parameters:
| Component | |
enableBubble( Object events )
+ Ext.ComponentEnable this component and fire the 'enable' event. Enable this component and fire the 'enable' event. Parameters:
| Component | |
enableBubble( String/Array events )
:
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 @@ -728,13 +773,13 @@ this.getBubbleTarget() if present... Enables events fi 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:
Parameters:
| Observable | |
findParentBy( Function fn )
+});Parameters:
| Observable | |
findParentBy( Function fn )
:
Ext.ContainerFind a container above this component at any level by a custom function. If the passed function returns
true, the con... Find a container above this component at any level by a custom function. If the passed function returns
@@ -766,7 +811,9 @@ An event may be set to bubble up an Obse... Fires the An event may be set to bubble up an Observable parent hierarchy (See Ext.Component.getBubbleTarget) by calling enableBubble. Parameters:
| Observable | |
focus( [Boolean selectText ], [Boolean/Number delay ] )
:
- Ext.ComponentTry to focus this component. Try to focus this component. Parameters:
| Component | |
getBox( [Boolean local ] )
+ Ext.ComponentTry to focus this component. Try to focus this component. Parameters:
| Component | |
getActiveError()
+ :
+ String Gets the active error message for this field. Gets the active error message for this field. Parameters:
| Field | |
getBox( [Boolean local ] )
:
ObjectGets the current box measurements of the component's underlying element. Gets the current box measurements of the component's underlying element. Parameters:
| BoxComponent | |
getBubbleTarget()
:
@@ -812,7 +859,7 @@ attribute of the field if available. Paramete
:
Mixed Returns the raw data value which may or may not be a valid, defined value. To return a normalized value see getValue... Returns the raw data value which may or may not be a valid, defined value. To return a normalized value see getValue. Parameters:
| Field | |
getResizeEl()
:
- void Returns the outermost Element of this Component which defines the Components overall size.
+ Ext.Element Returns the outermost Element of this Component which defines the Components overall size.
Usually this will return t... Returns the outermost Element of this Component which defines the Components overall size. Usually this will return the same Element as An example is a ComboBox. It is encased in a wrapping Element which
contains both the Parameters:
| BoxComponent | |
getSize()
+This Element is returned as the resizeEl .Parameters:
| BoxComponent | |
getSize()
:
Object Gets the current size of the component's underlying element. Gets the current size of the component's underlying element. Parameters:
| BoxComponent | |
getValue()
:
@@ -881,11 +928,32 @@ to participate in determination of inherited xtypes.
var isBoxInstance = t.isXType('box', true); // false, not a direct BoxComponent instance Parameters:
| Component | |
markInvalid( [String msg ] )
:
- voidMark this field as invalid, using msgTarget to determine how to
-display the error and applying invalidClass to the fi... Mark this field as invalid, using msgTarget to determine how to
-display the error and applying invalidClass to the field's element.
-Note: this method does not actually make the field
-invalid. Parameters:
| Field | |
nextSibling()
+ void Display an error message associated with this field, using msgTarget to determine how to
+display the message and appl... Display an error message associated with this field, using msgTarget to determine how to +display the message and applying invalidClass to the field's UI element. +Note: this method does not cause the Field's validate method to return Parameters:
| Field | |
mon( Observable|Element item , Object|String ename , Function fn , Object scope , Object opt )
+ :
+ voidAdds listeners to any Observable object (or Elements) which are automatically removed when this Component
+is destroye... Adds listeners to any Observable object (or Elements) which are automatically removed when this Component +is destroyed. Usage:
+or:
Parameters:
| Component | |
mun( Observable|Element item , Object|String ename , Function fn , Object scope )
+ :
+ voidRemoves listeners that were added by the mon method. Removes listeners that were added by the mon method. Parameters:
| Component | |
nextSibling()
:
Ext.Component Returns the next component in the owning container Returns the next component in the owning container Parameters:
| Component | |
on( String eventName , Function handler , [Object scope ], [Object options ] )
:
@@ -943,7 +1011,9 @@ event...Resume firing events. (see Parameters:
| Observable | |
selectText( [Number start ], [Number end ] )
:
- voidSelects text in this field Selects text in this field Parameters:
| TextField | |
setDisabled( Boolean disabled )
+ voidSelects text in this field Selects text in this field Parameters:
| TextField | |
setAutoScroll( Boolean scroll )
+ :
+ Ext.BoxComponentSets the overflow on the content element of the component. Sets the overflow on the content element of the component. Parameters:
| BoxComponent | |
setDisabled( Boolean disabled )
:
Ext.ComponentConvenience function for setting disabled/enabled by boolean. Convenience function for setting disabled/enabled by boolean. Parameters:
| Component | |
setHeight( Number height )
:
@@ -961,7 +1031,9 @@ This method fires the Sets the left and top of the component. To set the page XY position instead, use setPagePosition.
This method fires the move event.Parameters:
| BoxComponent | |
setRawValue( Mixed value )
:
- MixedSets the underlying DOM field's value directly, bypassing validation. To set the value with validation see setValue. Sets the underlying DOM field's value directly, bypassing validation. To set the value with validation see setValue. Parameters:
| Field | |
setSize( Mixed width , Mixed height )
+ MixedSets the underlying DOM field's value directly, bypassing validation. To set the value with validation see setValue. Sets the underlying DOM field's value directly, bypassing validation. To set the value with validation see setValue. Parameters:
| Field | |
setReadOnly( Boolean readOnly )
+ :
+ voidSets the read only state of this field. Sets the read only state of this field. Parameters:
| Field | |
setSize( Mixed width , Mixed height )
:
Ext.BoxComponentSets the width and height of this BoxComponent. This method fires the resize event. This method can accept
either wid... Sets the width and height of this BoxComponent. This method fires the resize event. This method can accept
@@ -996,7 +1068,12 @@ after the Force the component's size to recalculate based on the underlying element's current height and width. Force the component's size to recalculate based on the underlying element's current height and width. Parameters:
| BoxComponent | |
un( String eventName , Function handler , [Object scope ] )
:
- voidRemoves an event handler (shorthand for removeListener.) Removes an event handler (shorthand for removeListener.) Parameters:
| Observable | |
updateBox( Object box )
+ voidRemoves an event handler (shorthand for removeListener.) Removes an event handler (shorthand for removeListener.) Parameters:
| Observable | |
update( Mixed htmlOrData , [Boolean loadScripts ], [Function callback ] )
+ :
+ voidUpdate the content area of a component. Update the content area of a component. Parameters:
| Component | |
updateBox( Object box )
:
Ext.BoxComponentSets the current box measurements of the component's underlying element. Sets the current box measurements of the component's underlying element. Parameters:
| BoxComponent | |
validate()
:
@@ -1056,7 +1133,9 @@ vtype Mask property.
configured regex test will be processed.
The invalid message for this test is configured with
regexText .
-Parameters:
| TextField |
Event | Defined By | |
---|---|---|
afterrender :
+ Parameters:
| TextField |
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 )
Fires after the component rendering is finished.
The afterrender event is fired after this Component has been rendere... Fires after the component rendering is finished. @@ -1123,7 +1202,9 @@ is set to true.
is set to true. Keyup input field event. This event only fires if enableKeyEvents
is set to true. Listeners will be called with the following arguments:
| TextField | |
move :
( Ext.Component this , Number x , Number y )
- Fires after the component is moved. Fires after the component is moved. Listeners will be called with the following arguments:
| BoxComponent | |
render :
+ Fires after the component is moved. Fires after the component is moved. Listeners will be called with the following arguments:
| BoxComponent | |
removed :
+ ( Ext.Component this , Ext.Container ownerCt )
+ Fires when a component is removed from an Ext.Container Fires when a component is removed from an Ext.Container Listeners will be called with the following arguments:
| Component | |
render :
( Ext.Component this )
Fires after the component markup is rendered. Fires after the component markup is rendered. Listeners will be called with the following arguments:
| Component | |
resize :
( Ext.Component this , Number adjWidth , Number adjHeight , Number rawWidth , Number rawHeight )
|