X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/2e847cf21b8ab9d15fa167b315ca5b2fa92638fc..ddde20c4d4ac6a8d53de079761155de813845b3c:/docs/output/Ext.TabPanel.html diff --git a/docs/output/Ext.TabPanel.html b/docs/output/Ext.TabPanel.html index 0f2ee153..63758ac6 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 |
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.
@@ -1131,9 +1131,9 @@ is a child of a Container, and has been configured with aref
.tab
: String/PanelObject/Array component
, Object (Optional)
, Object (Optional)
)
+the beforetabchange event which can return false to cancel the tab change.tab
: String/Panel...Object/Array component
)
:
- Ext.ComponentAdds Component(s) to this Container.
@@ -1158,8 +1158,8 @@ tb.BorderLayout for more details. -component
: Object/ArrayEither a single component or an Array of components to add. See
-items
for additional information.
(Optional)
: Object(Optional)
: ObjectExt.Component
String/Object config
, Function handler
, Object scope
)
+component
: ...Object/ArrayEither one or more Components to add or an Array of Components to add. See
+items
for additional information.
Ext.Component/Array
String/Object config
, Function handler
, Object scope
)
:
Ext.ButtonExt.Component
String/Array events
)
:
- voidEnables events fired by this Observable to bubble up an owner hierarchy by calling
-this.getBubbleTarget()
if present. There is no implementation in the Observable base class.
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:
Ext.override(Ext.form.Field, {
- // Add functionality to Field's initComponent to enable the change event to bubble
- initComponent : Ext.form.Field.prototype.initComponent.createSequence(function() {
- this.enableBubble('change');
- }),
-
- // We know that we want Field's events to bubble directly to the FormPanel.
- getBubbleTarget : function() {
- if (!this.formPanel) {
- this.formPanel = this.findParentByType('form');
- }
- return this.formPanel;
- }
-});
-
-var myForm = new Ext.formPanel({
- title: 'User Details',
- items: [{
- ...
- }],
- listeners: {
- change: function() {
- // Title goes red if form has been modified.
- myForm.header.setStyle('color', 'red');
- }
- }
+ 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.getBubbleTarget()
if present. There is no implementation in the Observable base class.
+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:
Ext.override(Ext.form.Field, {
+ // Add functionality to Field's initComponent to enable the change event to bubble
+ initComponent : Ext.form.Field.prototype.initComponent.createSequence(function() {
+ this.enableBubble('change');
+ }),
+
+ // We know that we want Field's events to bubble directly to the FormPanel.
+ getBubbleTarget : function() {
+ if (!this.formPanel) {
+ this.formPanel = this.findParentByType('form');
+ }
+ return this.formPanel;
+ }
+});
+
+var myForm = new Ext.formPanel({
+ title: 'User Details',
+ items: [{
+ ...
+ }],
+ listeners: {
+ change: function() {
+ // Title goes red if form has been modified.
+ myForm.header.setStyle('color', 'red');
+ }
+ }
});
Parameters:events
: String/ArrayThe event name to bubble, or an Array of event names.
Returns:- void
Boolean animate
)
@@ -1366,7 +1366,9 @@ or use a render listener directly:new Ext.Panel({
},
single: true // Remove the listener after first invocation
}
-});
Ext.Element
Ext.Element
resizeEl
.tab
: Panel/Number/StringHTMLElement
BoxComponent item
)
+ID. Access this to change the visual treatment of the item, for example by changing the CSS class name.tab
: Panel/Number/StringHTMLElement
Ext.BoxComponent item
)
:
ObjectProvides template arguments for rendering a tab selector item in the tab strip.
@@ -1437,7 +1439,7 @@ are:item
: BoxComponentObject
String id
)
+item
: Ext.BoxComponentObject
String id
)
:
Objectid
: StringObject
Sets the overflow on the content element of the component.Sets the overflow on the content element of the component.Parameters:scroll
: BooleanTrue to allow the Component to auto scroll.
Returns:Ext.BoxComponent
this
Boolean disabled
)
:
- Ext.Componentdisabled
: BooleanExt.Component
Number height
)
+ Ext.Componentdisabled
: BooleanExt.Component
Mixed height
)
:
- Ext.BoxComponentheight
: Numberheight
: MixedExt.BoxComponent
String cls
)
@@ -1649,10 +1651,10 @@ In order to be able to set the title, a header eleme...Boolean visible
)
:
- Ext.Componentvisible
: BooleanExt.Component
Number width
)
+ Ext.Componentvisible
: BooleanExt.Component
Mixed width
)
:
- Ext.BoxComponentwidth
: Numberwidth
: MixedExt.BoxComponent