X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/c930e9176a5a85509c5b0230e2bff5c22a591432..f5240829880f87e0cf581c6a296e436fdef0ef80:/docs/output/Ext.TabPanel.html?ds=inline diff --git a/docs/output/Ext.TabPanel.html b/docs/output/Ext.TabPanel.html index 45cc9411..b803bae6 100644 --- a/docs/output/Ext.TabPanel.html +++ b/docs/output/Ext.TabPanel.html @@ -1,4 +1,4 @@ -
Observable Component BoxComponent Container Panel TabPanel
Package: | Ext |
Defined In: | TabPanel.js |
Class: | TabPanel |
Extends: | Panel |
xtype: | tabpanel |
A basic tab container. TabPanels can be used exactly like a standard Ext.Panel +
Observable Component BoxComponent Container Panel TabPanel
Package: | Ext |
Defined In: | TabPanel.js |
Class: | TabPanel |
Extends: | Panel |
A basic tab container. TabPanels can be used exactly like a standard Ext.Panel for layout purposes, but also have special support for containing child Components (items) that are managed using a CardLayout layout manager, and displayed as separate tabs.
@@ -22,6 +22,9 @@ These events are: the active tab.false
from a handler.Creating TabPanels from Code
TabPanels can be created and rendered completely in code, as in this example:
@@ -72,20 +75,20 @@ container's layout on render. For example, activeItem: 'item-1' or activeItem: item in the container's collection). activeItem only applies to layout styles that can display items one at a time (like Ext.layout.AccordionLayout, Ext.layout.CardLayout and Ext.layout.FitLayout). Related to Ext.layout.ContainerLayout.activeItem.Note: this config is only used when this Component is rendered -by a Container which has been configured to use an AnchorLayout +by a Container which has been configured to use an AnchorLayout (or subclass thereof). based layout manager, for example:
layout: 'anchor' // or 'form', or 'absolute'
See Ext.layout.AnchorLayout.anchor also.
See Ext.layout.AnchorLayout.anchor also.
true
to animate the transition when the panel is collapsed, false
to skip the
+animation (defaults to true
if the Ext.Fx class is available, otherwise false
).The id of the node, a DOM node or an existing Element corresponding to a DIV that is already present in
-the document that specifies some panel-specific structural markup. When applyTo is used,
+the document that specifies some panel-specific structural markup. When applyTo
is used,
constituent parts of the panel can be specified by CSS class name within the main element, and the panel
will automatically create those components from that markup. Any required components not specified in the
markup will be autogenerated if necessary.
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
-manages dimensions (fit, border, etc.) then setting autoHeight:true
+manages dimensions (fit
, border
, etc.) then setting autoHeight: true
can cause issues with scrolling and will not generally work as expected since the panel will take
on the height of its contents rather than the height required by the Ext layout.The URL will become the default URL for this panel's body element, -so it may be refreshed at any time.
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
).var myPanel = <
buttons/button co...
The bottom toolbar of the panel. This can be a Ext.Toolbar object, a toolbar config, or an array of buttons/button configs to be added to the toolbar. Note that this is not available as a property after render. To access the bottom toolbar after render, use getBottomToolbar.
-Note: Although a Toolbar may contain Field components, these will not be updated by a load +
Note: Although a Toolbar may contain Field components, these will not be updated by a load of an ancestor FormPanel. A Panel's toolbars are not part of the standard Container->Component hierarchy, and so are not scanned to collect form items. However, the values will be submitted because form submission parameters are collected from the DOM tree.
A DomHelper element specification object may be specified for any Panel Element.
By default, the Default element in the table below will be used for the html markup to -create a child element with the commensurate Default class name (baseCls will be -replaced by baseCls):
+create a child element with the commensurate Default class name (baseCls
will be
+replaced by baseCls
):
Panel Default Default Custom Additional Additional Element element class element class style @@ -224,32 +256,43 @@ 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 footerStyle: 'background-color:red' // see bodyStyle });-
The example above also explicitly creates a footer with custom markup and +
The example above also explicitly creates a footer
with custom markup and
styling applied.
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.
An array of events that, when fired, should be bubbled to any parent container.
+See Ext.util.Observable.enableBubble.
+Defaults to ['add', 'remove']
.
'right'
,
+'left'
and 'center'
(defaults to 'right'
).buttons
will be used as items
for the toolbar in
+the footer (fbar
). Typically the value of this configuration property will be
an array of Ext.Buttons or Ext.Button configuration objects.
-If an item is configured with minWidth or the Panel is configured with minButtonWidth,
+If an item is configured with minWidth
or the Panel is configured with minButtonWidth
,
that width will be applied to the item.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').
@@ -259,34 +302,27 @@ manager (e.g. fieldLabel is specified or isFormField=true is specified.See Ext.layout.FormLayout.fieldTpl also.
true
+to enable closing in such situations. Defaults to false
.Specify the id of an existing HTML node to use as the panel's body content -(defaults to '').
true
to make sure the collapse/expand toggle button always renders first (to the left of)
+any other tools in the panel's title bar, false
to render it last (defaults to true
).'x-panel-collapsed'
).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.
@@ -297,18 +333,23 @@ which assigns a value by default:ctCls: 'x-box-layout-ct custom-class'
-tpl
to
+update the content area of the Component.The default xtype of child Components to create in this Container when a child item is specified as a raw configuration object, rather than as an instantiated Component.
-Defaults to 'panel', except Ext.menu.Menu which defaults to 'menuitem', -and Ext.Toolbar and Ext.ButtonGroup which default to 'button'.
A config object that will be applied to all components added to this container either via the items -config or via the add or insert methods. The defaults config can contain any -number of name/value property pairs to be added to each item, and should be valid for the types of items -being added to the container. For example, to automatically apply padding to the body of each of a set of -contained Ext.Panel items, you could pass: defaults: {bodyStyle:'padding:15px'}.
Note: defaults will not be applied to config objects if the option is already specified. -For example:
defaults: { // defaults are applied to items, not the container
+Defaults to 'panel'
, except Ext.menu.Menu which defaults to 'menuitem'
,
+and Ext.Toolbar and Ext.ButtonGroup which default to 'button'
.
This option is a means of applying default settings to all added items whether added through the items +config or via the add or insert methods.
+If an added item is a config object, and not an instantiated Component, then the default properties are +unconditionally applied. If the added item is an instantiated Component, then the default properties are +applied conditionally so as not to override existing properties in the item.
+If the defaults option is specified as a function, then the function will be called using this Container as the
+scope (this
reference) and passing the added item as the first parameter. Any resulting object
+from that call is then applied to the item as default properties.
For example, to automatically apply padding to the body of each of a set of
+contained Ext.Panel items, you could pass: defaults: {bodyStyle:'padding:15px'}
.
Usage:
defaults: { // defaults are applied to items, not the container
autoScroll:true
},
items: [
@@ -337,7 +378,7 @@ is within a getValues or
setValues.
false
). An important note when using the disabled
config on panels is that IE will often fail to initialize the disabled mask element correectly if
the panel's layout has not yet completed by the time the Panel is disabled during the render process.
If you experience this issue, you may need to instead use the afterlayout event to initialize
@@ -353,9 +394,9 @@ the disabled state:
}
}
});true to enable dragging of this Panel (defaults to false).
+For custom drag/drop implementations, an Ext.Panel.DD conf...true
to enable dragging of this Panel (defaults to false
).
For custom drag/drop implementations, an Ext.Panel.DD config could also be passed
-in this config instead of true. Ext.Panel.DD is an internal, undocumented class which
+in this config instead of true
. Ext.Panel.DD is an internal, undocumented class which
moves a proxy Element around in place of the Panel's element, but provides no other behaviour
during dragging or on drop. It is a subclass of Ext.dd.DragSource, so behaviour may be
added by implementing the interface methods of Ext.dd.DragDrop e.g.:
@@ -399,20 +440,20 @@ generated automatically based on the items added to the panel at config time, bu
make sure a structural element is rendered even if not specified at config time (for example, you may want
to add a button or toolbar dynamically after the panel has been rendered). Adding those elements to this
list will allocate the required placeholders in the panel when it is rendered. Valid values are
header
tbar
(top bar)body
bbar
(bottom bar)footer
body
'.A Toolbar object, a Toolbar config, or an array of Buttons/Button configs, describing a Toolbar to be rendered into this Panel's footer element.
After render, the fbar
property will be an Toolbar instance.
If buttons are specified, they will supersede the fbar configuration property.
-The Panel's buttonAlign configuration affects the layout of these items, for example: +If buttons
are specified, they will supersede the fbar
configuration property.
buttonAlign
configuration affects the layout of these items, for example:
var w = new Ext.Window({
height: 250,
width: 500,
@@ -423,7 +464,7 @@ The Panel's 'bbar Right'
}]
}),
- buttonAlign: 'left', // anything but 'center' or 'right' and you can use "-", and "->"
+ buttonAlign: 'left', // anything but 'center' or 'right' and you can use '-', and '->'
// to control the alignment of fbar items
fbar: [{
text: 'fbar Left'
@@ -431,7 +472,7 @@ The Panel's 'fbar Right'
}]
}).show();
-Note: Although a Toolbar may contain Field components, these will not be updated by a load +
Note: Although a Toolbar may contain Field components, these will not be updated by a load of an ancestor FormPanel. A Panel's toolbars are not part of the standard Container->Component hierarchy, and so are not scanned to collect form items. However, the values will be submitted because form submission parameters are collected from the DOM tree.
new Ext.FormPanel({
xtype: 'textfield',
fieldLabel: 'Name'
}]
-});
Note: this config is only used when this Component is rendered
+by a Container which has been configured to use a BoxLayout.
+Each child Component with a flex
property will be flexed either vertically (by a VBoxLayout)
+or horizontally (by an HBoxLayout) according to the item's relative flex
value
+compared to the sum of all Components with flex value specified. Any child items that have
+either a
flex = 0
or flex = undefined
will not be 'flexed' (the initial size will not be changed).
This property is used to configure the underlying Ext.Layer. Acceptable values for this configuration property are:
false
: Default.true
: myPanel.setPosition(100,100);
).false
by default to render with plain 1px square borders. true
to render with
9 elements, complete with custom rounded corners (also see Ext.Element.boxWrap).
The template generated for each condition is depicted below:
// frame = false
<div id="developer-specified-id-goes-here" class="x-panel">
@@ -499,7 +546,7 @@ is useful for forcing forms to render in collapsed or hidden containers. (defaul
</div></div></div>
</div>
An example of specifying a custom icon class would be something like:
// specify the property in the config for the class:
@@ -550,8 +597,11 @@ rules to style the specific instance of this component uniquely, and also to sel
sub-elements using this component's id as the parent.
Note: to avoid complications imposed by a unique id also see
itemId
and ref
.
-Note: to access the container of an item see ownerCt
.
An additional CSS class to apply to the div wrapping the form item +
Note: to access the container of an item see ownerCt
.
Note: this config is only used when this Component is rendered by a Container which +has been configured to use the FormLayout layout manager (e.g. +Ext.form.FormPanel or specifying layout:'form').
An additional CSS class to apply to the div wrapping the form item element of this field. If supplied, itemCls at the field level will override the default itemCls supplied at the container level. The value specified for itemCls will be added to the default class ('x-form-item').
@@ -560,22 +610,22 @@ the default itemCls supplied at the container level. The value s you to write standard CSS rules that can apply to the field, the label (if specified), or any other element within the markup for the field.Note: see the note for fieldLabel.
// Apply a style to the field's label:
+Example use:// Apply a style to the field's label:
<style>
.required .x-form-item-label {font-weight:bold;color:red;}
</style>
new Ext.FormPanel({
- height: 100,
- renderTo: Ext.getBody(),
- items: [{
- xtype: 'textfield',
- fieldLabel: 'Name',
- itemCls: 'required' //this label will be styled
- },{
- xtype: 'textfield',
- fieldLabel: 'Favorite Color'
- }]
+ height: 100,
+ renderTo: Ext.getBody(),
+ items: [{
+ xtype: 'textfield',
+ fieldLabel: 'Name',
+ itemCls: 'required' //this label will be styled
+ },{
+ xtype: 'textfield',
+ fieldLabel: 'Favorite Color'
+ }]
});
An itemId can be used as an alternative way to get a reference to a component
when no object reference is available. Instead of using an id
with
@@ -630,9 +680,9 @@ Below is an example of how to create customized tab selector items:
new Ext.XTemplate( '<li class="{cls}" id="{id}" style="overflow:hidden">', '<tpl if="closable">', - '<a class="x-tab-strip-close" onclick="return false;"></a>', + '<a class="x-tab-strip-close"></a>', '</tpl>', - '<a class="x-tab-right" href="#" onclick="return false;" style="padding-left:6px">', + '<a class="x-tab-right" href="#" style="padding-left:6px">', '<em class="x-tab-left">', '<span class="x-tab-strip-inner">', '<img src="{src}" style="float:left;margin:3px 3px 0 0">', @@ -699,7 +749,7 @@ shown (no sizing is done while hidden), or in response to a html
withitems
.
null
).The separator to display after the text of each fieldLabel. This property may be configured at various levels. @@ -826,14 +876,19 @@ to the second, and the bottom is set to the third.
Defaults to:
{top:0, right:0, bottom:0, left:0}
true
to mask the panel when it is disabled, false
to not mask it (defaults
+to true
). Either way, the panel will always tell its contained elements to disable themselves
when it is disabled, but masking the panel can provide an additional visual cue that the panel is
-disabled.75
)layout
and should not need
+to be set manually.A path specification, relative to the Component's ownerCt specifying into which -ancestor Container to place a named reference to this Component.
+take advantage of lazy instantiation and rendering.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',
@@ -869,9 +924,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.
Note: this config is only used when this BoxComponent is rendered by a Container which has been configured to use the BorderLayout layout manager (e.g. specifying layout:'border').
See render also.
See render also.
true
(or a valid Ext.Shadow Ext.Shadow.mode value) to display a shadow behind the
+panel, false
to display no shadow (defaults to 'sides'
). Note that this option
+only applies when floating = true
.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
.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
@@ -982,10 +1038,11 @@ tabs. If you change the margin in CSS, you will need to update this value so cal
with either resizeTabs or scrolling tabs. (defaults to 2)
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.The top toolbar of the panel. This can be a Ext.Toolbar object, a toolbar config, or an array of buttons/button configs to be added to the toolbar. Note that this is not available as a property after render. To access the top toolbar after render, use getTopToolbar.
@@ -994,15 +1051,24 @@ of an ancestor FormPanel. A Panel's toolbars are not part of the standard Contai so are not scanned to collect form items. However, the values will be submitted because form submission parameters are collected from the DOM tree.header
(defaults to ''). When a title
is specified the
+header
element will automatically be created and displayed unless
+header is explicitly set to false
. If you do not want to specify a
+title
at config time, but you may want one later, you must either specify a non-empty
+title
(a blank space ' ' will do) or header:true
so that the container
+element will get created.data
and
+tplWriteMode
configurations.Ext.XTemplate.overwrite
).If this Panel is intended to be used as the host of a Layout (See layout
then the body Element must not be loaded or changed - it is under the control
of the Panel's Layout.
-
Note: see the Note for el also.
buttons
config property. Read only.Note: to access items within the container see itemId.
Method | Defined By | |||
---|---|---|---|---|
TabPanel( Object config )
- Parameters:
| TabPanel | |||
activate( String/Panel tab )
+This Element is used to house the Panel's Note: see the Note for | Panel | |||
hidden : Boolean True if this component is hidden. Read-only. | Component | |||
initialConfig : Object This Component's initial configuration specification. Read-only. | Component | |||
items : MixedCollection The collection of components in this container as a Ext.util.MixedCollection | Container | |||
ownerCt : Ext.Container This Component's owner Container (defaults to undefined, and is set automatically when
+this Component is added to a C... | 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 |
Method | Defined By | |
---|---|---|
TabPanel( Object config )
+ Parameters:
| TabPanel | |
activate( String/Panel tab )
:
voidSee setActiveTab. Sets the specified tab as the active tab. This method fires
the beforetabchange event which can ret... See setActiveTab. Sets the specified tab as the active tab. This method fires
-the beforetabchange event which can return false to cancel the tab change. Parameters:
| TabPanel | |
add( Object/Array component , Object (Optional) , Object (Optional) )
+the beforetabchange event which can return false to cancel the tab change.Parameters:
| TabPanel | |
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. @@ -1076,10 +1144,10 @@ accordingly (see
- 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
approach is to add buttons via the buttons config. Parameters:
| Panel | |
addClass( string cls )
+button config, an object will be treated as a button config object.handler : FunctionThe function to be called on button Ext.Button.click scope : ObjectThe scope ( this reference) in which the button handler function is executed. Defaults to the Button.
| Panel | |
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 object )
+ 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. )
:
- voidUsed to define events on this Observable Used to define events on this Observable Parameters:
| Observable | |
addListener( String eventName , Function handler , [Object scope ], [Object options ] )
+ voidAdds the specified events to the list of events which this Observable may fire. Adds the specified events to the list of events which this Observable may fire. Parameters:
| Observable | |
addListener( String eventName , Function handler , [Object scope ], [Object options ] )
:
voidAppends an event handler to this object. Appends an event handler to this object. Parameters:
| Observable | |
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 | |
beginUpdate()
:
- void Suspends any internal calculations or scrolling while doing a bulk operation. See endUpdate Suspends any internal calculations or scrolling while doing a bulk operation. See endUpdate Parameters:
| TabPanel | |
bubble( Function fn , [Object scope ], [Array args ] )
+ voidSuspends any internal calculations or scrolling while doing a bulk operation. See endUpdate Suspends any internal calculations or scrolling while doing a bulk operation. See endUpdate Parameters:
| TabPanel | |
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
@@ -1187,9 +1257,41 @@ to... Force this container's layout to be recalculated. A
to an already rendered container, or possibly after changing sizing/position properties of child components. Parameters:
| Container | |
enable()
:
- Ext.Component Enable this component and fire the 'enable' event. Enable this component and fire the 'enable' event. Parameters:
| Component | |
enableBubble( Object events )
- :
- voidUsed to enable bubbling of events Used to enable bubbling of events Parameters:
| Observable | |
endUpdate()
+ 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:
Parameters:
| Observable | |
endUpdate()
:
void Resumes calculations and scrolling at the end of a bulk operation. See beginUpdate Resumes calculations and scrolling at the end of a bulk operation. See beginUpdate Parameters:
| TabPanel | |
expand( Boolean animate )
:
@@ -1211,9 +1313,11 @@ the default), or true to check whether this Component is directly of the specifi
:
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
-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). @@ -1224,9 +1328,12 @@ by callingGet a component contained by this container (alias for items.get(key)) Get a component contained by this container (alias for items.get(key)) Parameters:
| Container | |
getActiveTab()
:
- Panel Gets the currently active tab. Gets the currently active tab. Parameters:
| TabPanel | |
getBottomToolbar()
+ BoxComponent Returns the Component which is the currently active tab. Note that before the TabPanel
+first activates a child Compon... Returns the Component which is the currently active tab. Note that before the TabPanel
+first activates a child Component, this method will return whatever was configured in the
+activeTab config option. Parameters:
| TabPanel | |
getBottomToolbar() : - Ext.Toolbar | Panel | |
getBox( [Boolean local ] )
+ Ext.Toolbar | Panel | |
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()
:
@@ -1236,9 +1343,9 @@ by calling Examines this container's items property
and gets a direct child component of this container.Parameters:
| Container | |
getEl()
@@ -1259,7 +1366,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
@@ -1305,7 +1414,7 @@ the element into which the Gets the current XY position of the component's underlying element. Gets the current XY position of the component's underlying element. Parameters:
| BoxComponent | |
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 | |
getTabEl( Panel/Number/String tab )
:
HTMLElementGets the DOM element for the tab strip item which activates the child panel with the specified
ID. Access this to cha... Gets the DOM element for the tab strip item which activates the child panel with the specified
-ID. Access this to change the visual treatment of the item, for example by changing the CSS class name. Parameters:
| TabPanel | |
getTemplateArgs( BoxComponent item )
+ID. Access this to change the visual treatment of the item, for example by changing the CSS class name.Parameters:
| TabPanel | |
getTemplateArgs( Ext.BoxComponent item )
:
ObjectProvides template arguments for rendering a tab selector item in the tab strip.
This method returns an object hash co... Provides template arguments for rendering a tab selector item in the tab strip. @@ -1330,11 +1439,11 @@ are:
Parameters:
| TabPanel | |
getTool( String id )
+Parameters:
| TabPanel | |
getTool( String id )
:
ObjectRetrieve a tool by id. Retrieve a tool by id. Parameters:
| Panel | |
getTopToolbar() : - Ext.Toolbar | Panel | |
getUpdater() + Ext.Toolbar | Panel | |
getUpdater()
:
Ext.Updater Get the Ext.Updater for this panel. Enables you to perform Ajax updates of this panel's body. Get the Ext.Updater for this panel. Enables you to perform Ajax updates of this panel's body. Parameters:
| Panel | |
getWidth()
:
@@ -1380,7 +1489,7 @@ property to the registered type of the Component wanted. For a list of all available xtypes, see Ext.Component.Returns:
| 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 @@ -1392,24 +1501,47 @@ 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:
| Panel | |
nextSibling()
+associated property on this panel Updater instance.Returns:
| Panel | |
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 ] )
:
@@ -1479,12 +1611,14 @@ or a Number : representing the position of the child component
within the | TabPanel | |
setDisabled( Boolean disabled )
+For additional information see Ext.util.MixedCollection.get.Returns:
| TabPanel | |
setAutoScroll( Boolean scroll )
:
- Ext.ComponentConvenience function for setting disabled/enabled by boolean. Convenience function for setting disabled/enabled by boolean. Parameters:
| Component | |
setHeight( Number height )
+ 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.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:
| 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 )
@@ -1518,13 +1652,13 @@ This may be one of:
Sets the title text for the panel and optionally the icon class.
In order to be able to set the title, a header eleme... Sets the title text for the panel and optionally the icon class. In order to be able to set the title, a header element must have been created -for the Panel. This is triggered either by configuring the Panel with a non-blank title, -or configuring it with header: true. Parameters: | Panel | |
setVisible( Boolean visible )
+for the Panel. This is triggered either by configuring the Panel with a non-blank title ,
+or configuring it with header: true .Parameters:
| 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()
:
@@ -1543,7 +1677,12 @@ after the Removes an event handler (shorthand for removeListener.) Removes an event handler (shorthand for removeListener.) Parameters:
| Observable | |
unhideTabStripItem( Number/String/Panel item )
:
- voidUnhides the tab strip item for the passed tab Unhides the tab strip item for the passed tab Parameters:
| TabPanel | |
updateBox( Object box )
+ voidUnhides the tab strip item for the passed tab Unhides the tab strip item for the passed tab Parameters:
| TabPanel | |
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 |
Event | Defined By | ||
---|---|---|---|
activate :
( Ext.Panel p )
@@ -1553,7 +1692,9 @@ Note that Panels do not directly support being activated, but some Panel subclas
do (like Ext.Window). Panels which are child Components of a TabPanel fire the
activate and deactivate events under the control of the TabPanel.Listeners will be called with the following arguments:
| Panel | ||
add :
( Ext.Container this , Ext.Component component , Number index )
- Listeners will be called with the following arguments:
| Container | ||
afterlayout :
+ Listeners will be called with the following arguments:
| Container | ||
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 | ||
afterlayout :
( Ext.Container this , ContainerLayout layout )
Fires when the components in this container are arranged by the associated layout manager. Fires when the components in this container are arranged by the associated layout manager. Listeners will be called with the following arguments:
| Container | ||
afterrender :
( Ext.Component this )
@@ -1607,7 +1748,7 @@ has a null implementation. | Fires before the active tab changes. Handlers can return false to cancel the tab change. Fires before the active tab changes. Handlers can return false to cancel the tab change. Listeners will be called with the following arguments:
| TabPanel | |
bodyresize :
( Ext.Panel p , Number width , Number height )
- Fires after the Panel has been resized. Fires after the Panel has been resized. Listeners will be called with the following arguments:
| Panel | ||
close :
+ Fires after the Panel has been resized. Fires after the Panel has been resized. Listeners will be called with the following arguments:
| Panel | ||
close :
( Ext.Panel p )
Fires after the Panel is closed. Note that Panels do not directly support being closed, but some
Panel subclasses do... Fires after the Panel is closed. Note that Panels do not directly support being closed, but some
@@ -1639,7 +1780,9 @@ Fires after the component is hidden when calling the Fires after the component is moved. Fires after the component is moved. Listeners will be called with the following arguments:
| BoxComponent | ||
remove :
( Ext.Container this , Ext.Component component )
- Listeners will be called with the following arguments:
| Container | ||
render :
+ Listeners will be called with the following arguments:
| Container | ||
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 )
|