X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/530ef4b6c5b943cfa68b779d11cf7de29aa878bf..6b044c28b5f26fb99c86c237ffad19741c0f7f3d:/docs/output/Ext.Window.html?ds=sidebyside diff --git a/docs/output/Ext.Window.html b/docs/output/Ext.Window.html index 4f37e515..e1583b37 100644 --- a/docs/output/Ext.Window.html +++ b/docs/output/Ext.Window.html @@ -1,4 +1,9 @@ -
Package: | Ext |
Defined In: | Window.js |
Class: | Window |
Extends: | Panel |
A specialized panel intended for use as an application window. Windows are floated, resizable, and +
Observable + Component + BoxComponent + Container + Panel + Window
Package: | Ext |
Defined In: | Window.js |
Class: | Window |
Extends: | Panel |
A specialized panel intended for use as an application window. Windows are floated, resizable, and draggable by default. Windows can be maximized to fill the viewport, restored to their prior size, and can be minimized.
Windows can also be linked to a Ext.WindowGroup or managed by the Ext.WindowMgr to provide @@ -39,7 +44,36 @@ markup will be autogenerated if necessary.
renderTo will be ignored and the target element's parent node will automatically be used as the panel's container.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 (defaults to false
).
Note: Setting autoHeight: true
means that the browser will manage the panel's height
based on its contents, and that Ext will not manage it at all. If the panel is within a layout that
@@ -100,7 +134,7 @@ element:
},
footerCfg: {
tag: 'h2',
- cls: 'x-panel-footer' // same as the Default class
+ cls: 'x-panel-footer', // same as the Default class
html: 'footer html'
},
footerCssClass: 'custom-footer', // additional css class, see addClass
@@ -331,7 +365,8 @@ of this Panel's header Element. See bodyCf...true
to hide the expand/collapse toggle button when collapsible == true
,
false
to display it (defaults to false
).The number of pixels to offset the shadow if displayed (defaults to 4
). Note that this
option only applies when floating = true
.
false
to disable the iframe shim in browsers which need one (defaults to true
).
-Note that this option only applies when floating = true
.floating = true
.An array of events that, when fired, should trigger this component to
save its state (defaults to none). stateEvents
may be any type
of event supported by this component, including browser or custom events
@@ -1126,12 +1162,12 @@ Or a shorthand syntax:
Ext.Window
element
: Mixedposition
: Stringoffsets
: ArraymonitorScroll
: Boolean/NumberExt.Window
String/HTMLElement el
)
:
- voidel
: String/HTMLElementFunction fn
, [Object scope
], [Array args
] )
+ voidel
: String/HTMLElementFunction fn
, [Object scope
], [Array args
] )
:
- Ext.Containerfn
: Functionscope
: Objectargs
: ArrayExt.Container
Function fn
, [Object scope
], [Array args
] )
+the bubble is stopped.fn
: Functionscope
: Objectargs
: ArrayExt.Component
Function fn
, [Object scope
], [Array args
] )
:
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).
@@ -1375,7 +1413,7 @@ property to the registered type of the Component wanted.Ext.Component
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 @@ -1387,7 +1425,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
Object/String/Function config
)
:
Ext.Panelconfig
: Object/String/Function