X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/2e847cf21b8ab9d15fa167b315ca5b2fa92638fc..6b044c28b5f26fb99c86c237ffad19741c0f7f3d:/docs/output/Ext.Window.html diff --git a/docs/output/Ext.Window.html b/docs/output/Ext.Window.html index 382d200d..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
@@ -991,8 +1027,12 @@ of the Panel's Layout.
Note: see the Note for el
also.
buttons
config property. Read only.If this Window is configured draggable, this property will contain +an instance of Ext.dd.DD which handles dragging the Window's DOM Element.
+This has implementations of startDrag
, onDrag
and endDrag
+which perform the dragging action. If extra logic is needed at these points, use
+createInterceptor or createSequence to
+augment the existing implementations.
The Ext.Element which encapsulates this Component. Read-only.
This will usually be a <DIV> element created by the class's onRender method, but
that may be overridden using the autoEl
config.
Ext.emptyFn
.Ext.emptyFn
.Note: to access items within the Container see itemId.
ref
.Method | Defined By | |
---|---|---|
Window( Object config )
- Parameters:
| Window | |
add( Object/Array component , Object (Optional) , Object (Optional) )
+ Parameters:
| Window | |
add( ...Object/Array component )
:
- Ext.ComponentAdds Component(s) to this Container.
+ Ext.Component/Array Adds Component(s) to this Container.
Description :
<ul class="mdetail-params">
Fires the beforeadd event before addin... Adds Component(s) to this Container. @@ -1054,8 +1092,8 @@ tb.BorderLayout for more details. -Parameters:
| Container | |
addButton( String/Object config , Function handler , Object scope )
+Parameters:
| Container | |
addButton( String/Object config , Function handler , Object scope )
:
Ext.ButtonAdds a button to this panel. Note that this method must be called prior to rendering. The preferred
approach is to ... Adds a button to this panel. Note that this method must be called prior to rendering. The preferred
@@ -1124,12 +1162,12 @@ Or a shorthand syntax: Ext.Window Anchors this window to another element and realigns it when the window is resized or scrolled. Anchors this window to another element and realigns it when the window is resized or scrolled. Parameters:
| Window | |
applyToMarkup( String/HTMLElement el )
:
- voidApply this component to existing markup that is valid. With this function, no call to render() is required. Apply this component to existing markup that is valid. With this function, no call to render() is required. Parameters:
| Component | |
bubble( Function fn , [Object scope ], [Array args ] )
+ voidApply this component to existing markup that is valid. With this function, no call to render() is required. Apply this component to existing markup that is valid. With this function, no call to render() is required. Parameters:
| Component | |
bubble( Function fn , [Object scope ], [Array args ] )
:
- Ext.ContainerBubbles up the component/container heirarchy, calling the specified function with each component. The scope (this) of... Bubbles up the component/container heirarchy, calling the specified function with each component. The scope (this) of
+ Ext.Component Bubbles up the component/container heirarchy, calling the specified function with each component. The scope (this) of... Bubbles up the component/container heirarchy, calling the specified function with each component. The scope (this) of
function call will be the scope provided or the current component. The arguments to the function
will be the args provided or the current component. If the function returns false at any point,
-the bubble is stopped. Parameters:
| Container | |
cascade( Function fn , [Object scope ], [Array args ] )
+the bubble is stopped.Parameters:
| Component | |
cascade( Function fn , [Object scope ], [Array args ] )
:
Ext.ContainerCascades down the component/container heirarchy from this component (called first), calling the specified function wi... Cascades down the component/container heirarchy from this component (called first), calling the specified function with
each component. The scope (this) of
@@ -1137,7 +1175,9 @@ function call will be the scope provided or the current component. The arguments
will be the args provided or the current component. If the function returns false at any point,
the cascade is stopped on that branch. Parameters:
| Container | |
center()
:
- Ext.Window Centers this window in the viewport Centers this window in the viewport Parameters:
| Window | |
cloneConfig( Object overrides )
+ Ext.WindowCenters this window in the viewport Centers this window in the viewport Parameters:
| Window | |
clearAnchor()
+ :
+ Ext.Window Removes any existing anchor from this window. See anchorTo. Removes any existing anchor from this window. See anchorTo. Parameters:
| Window | |
cloneConfig( Object overrides )
:
Ext.ComponentClone the current component using the original config values passed into this instance by default. Clone the current component using the original config values passed into this instance by default. Parameters:
| Component | |
close()
@@ -1170,38 +1210,38 @@ calc layouts as required (defaults to false, which calls doLayout recursively fo
:
Ext.Component Enable 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
- 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:
| Observable | |
expand( Boolean animate )
:
Ext.PanelExpands the panel body so that it becomes visible. Fires the beforeexpand event which will
@@ -1222,9 +1262,11 @@ the default), or true to check whether this Component is directly of the specifi
:
Ext.Container Find 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
-true, the container will be returned. Parameters:
| Component | |
findParentByType( String/Class xtype )
+true, the container will be returned.Parameters:
| Component | |
findParentByType( String/Ext.Component/Class xtype , [Boolean shallow ] )
:
- Ext.ContainerFind a container above this component at any level by xtype or class Find a container above this component at any level by xtype or class Parameters:
| Component | |
fireEvent( String eventName , Object... args )
+ Ext.ContainerFind a container above this component at any level by xtype or class Find a container above this component at any level by xtype or class Parameters:
| Component | |
fireEvent( String eventName , Object... args )
:
BooleanFires the specified event with the passed parameters (minus the event name).
An event may be set to bubble up an Obse... Fires the specified event with the passed parameters (minus the event name). @@ -1270,7 +1312,9 @@ or use a render listener directly:
Parameters:
| Component | |
getFrameHeight()
+}); Parameters:
| Component | |
getFooterToolbar() + : + Ext.Toolbar | Panel | |
getFrameHeight()
:
Number Returns the height in pixels of the framing elements of this panel (including any top and bottom bars and
header and ... Returns the height in pixels of the framing elements of this panel (including any top and bottom bars and
@@ -1369,7 +1413,7 @@ property to the registered type of the Component wanted. Returns:For a list of all available xtypes, see Ext.Component.
| Container | |
isVisible()
:
- Boolean Returns true if this component is visible. Returns true if this component is visible. Parameters:
| Component | |
isXType( String xtype , [Boolean shallow ] )
+ BooleanReturns true if this component is visible. Returns true if this component is visible. Parameters:
| Component | |
isXType( 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
from th... Tests whether or not this Component is of a specific xtype. This can test whether this Component is descended @@ -1381,7 +1425,11 @@ to participate in determination of inherited xtypes.
Parameters:
| Component | |
load( Object/String/Function config )
:
Ext.PanelLoads this content panel immediately with content returned from an XHR call. Loads this content panel immediately with content returned from an XHR call. 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 )
+ Ext.ComponentConvenience function for setting disabled/enabled by boolean. Convenience function for setting disabled/enabled by boolean. Parameters:
| Component | |
setHeight( Mixed height )
:
- Ext.BoxComponentSets the height of the component. This method fires the resize event. Sets the height of the component. This method fires the resize event. Parameters:
| BoxComponent | |
setIconClass( String cls )
@@ -1538,10 +1586,10 @@ In order to be able to set the title, a header eleme... | Panel | |
setVisible( Boolean visible )
:
- Ext.ComponentConvenience function to hide or show this component by boolean. Convenience function to hide or show this component by boolean. Parameters:
| Component | |
setWidth( Number width )
+ Ext.ComponentConvenience function to hide or show this component by boolean. Convenience function to hide or show this component by boolean. Parameters:
| Component | |
setWidth( Mixed width )
:
- Ext.BoxComponentSets the width of the component. This method fires the resize event. Sets the width of the component. This method fires the resize event. Parameters:
| BoxComponent | |
show( [String/Element animateTarget ], [Function callback ], [Object scope ] )
:
|