X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/6a7e4474cba9d8be4b2ec445e10f1691f7277c50..refs/heads/old:/docs/output/Ext.form.TextField.html?ds=inline diff --git a/docs/output/Ext.form.TextField.html b/docs/output/Ext.form.TextField.html index b181b9a4..53c5945b 100644 --- a/docs/output/Ext.form.TextField.html +++ b/docs/output/Ext.form.TextField.html @@ -1,4 +1,8 @@ -
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, +
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
@@ -41,102 +45,11 @@ element's parent node will automatically be used as the component's container. element spec. Used to create the Element which will encapsulate this ...A tag name or DomHelper spec used to create the Element which will -encapsulate this Component.
-You do not normally need to specify this. For the base classes Ext.Component, Ext.BoxComponent, -and Ext.Container, this defaults to 'div'. The more complex Ext classes use a more complex -DOM structure created by their own onRender methods.
-This is intended to allow the developer to create application-specific utility Components encapsulated by -different DOM elements. Example usage:
{
- xtype: 'box',
- autoEl: {
- tag: 'img',
- src: 'http://www.example.com/example.jpg'
- }
-}, {
- xtype: 'box',
- autoEl: {
- tag: 'blockquote',
- html: 'autoEl is cool!'
- }
-}, {
- xtype: 'container',
- autoEl: 'ul',
- cls: 'ux-unordered-list',
- items: {
- xtype: 'box',
- autoEl: 'li',
- html: 'First list item'
- }
-}
True to use height:'auto', false to use fixed height (or allow it to be managed by its parent -Container's layout manager. Defaults to false.
-Note: Although many components inherit this config option, not all will -function as expected with a height of 'auto'. Setting autoHeight:true means that the -browser will manage height based on the element's contents, and that Ext will not manage it at all.
-If the browser is managing the height, be aware that resizes performed by the browser in response -to changes within the structure of the Component cannot be detected. Therefore changes to the height might -result in elements needing to be synchronized with the new height. Example:
var w = new Ext.Window({
- title: 'Window',
- width: 600,
- autoHeight: true,
- items: {
- title: 'Collapse Me',
- height: 400,
- collapsible: true,
- border: false,
- listeners: {
- beforecollapse: function() {
- w.el.shadow.hide();
- },
- beforeexpand: function() {
- w.el.shadow.hide();
- },
- collapse: function() {
- w.syncShadow();
- },
- expand: function() {
- w.syncShadow();
- }
- }
- }
-}).show();
{tag: 'input', type: 'text', size: '20', autocomplete: 'off'}
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 -Container's layout manager. Defaults to false.
-Note: Although many components inherit this config option, not all will -function as expected with a width of 'auto'. Setting autoWidth:true means that the -browser will manage width based on the element's contents, and that Ext will not manage it at all.
-If the browser is managing the width, be aware that resizes performed by the browser in response -to changes within the structure of the Component cannot be detected. Therefore changes to the width might -result in elements needing to be synchronized with the new width. For example, where the target element is:
<div id='grid-container' style='margin-left:25%;width:50%'></div>
-A Panel rendered into that target element must listen for browser window resize in order to relay its
-child items when the browser changes its width:var myPanel = new Ext.Panel({
- renderTo: 'grid-container',
- monitorResize: true, // relay on browser resize
- title: 'Panel',
- height: 400,
- autoWidth: true,
- layout: 'hbox',
- layoutConfig: {
- align: 'stretch'
- },
- defaults: {
- flex: 1
- },
- items: [{
- title: 'Box 1',
- }, {
- title: 'Box 2'
- }, {
- 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.
Function fn
, [Object scope
], [Array args
] )
+ :
+ Ext.Componentfn
: Functionscope
: Objectargs
: ArrayExt.Component
Object overrides
)
:
@@ -811,9 +729,11 @@ access the required target more quickly.
:
Ext.Containerfn
: FunctionExt.Container
String/Class xtype
)
+true, the container will be returned.fn
: FunctionExt.Container
String/Ext.Component/Class xtype
, [Boolean shallow
] )
:
- Ext.Containerxtype
: String/ClassExt.Container
String eventName
, Object... args
)
+ Ext.Containerxtype
: String/Ext.Component/Classshallow
: BooleanExt.Container
String eventName
, Object... args
)
:
BooleanFires the specified event with the passed parameters (minus the event name).
@@ -978,7 +898,7 @@ of the field. Note: disab...preventMark
: BooleanBoolean
Boolean
String xtype
, [Boolean shallow
] )
+ BooleanBoolean
String/Ext.Component/Class xtype
, [Boolean shallow
] )
:
BooleanTests whether or not this Component is of a specific xtype. This can test whether this Component is descended @@ -990,7 +910,11 @@ to participate in determination of inherited xtypes.
var t = new Ext.form.TextField();
var isText = t.isXType('textfield'); // true
var isBoxSubclass = t.isXType('box'); // true, descended from BoxComponent
-var isBoxInstance = t.isXType('box', true); // false, not a direct BoxComponent instance
xtype
: Stringshallow
: Booleanxtype
: String/Ext.Component/Classvar c = new Ext.Component();
+console.log(c.isXType(c));
+console.log(c.isXType(Ext.Component));
shallow
: BooleanBoolean
String msg
] )
:
void