X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/25ef3491bd9ae007ff1fc2b0d7943e6eaaccf775..10a866c12701c0a0afd0ac85dcdcf32a421514ac:/docs/output/Ext.SplitButton.html?ds=sidebyside diff --git a/docs/output/Ext.SplitButton.html b/docs/output/Ext.SplitButton.html index 25a43be5..1b510621 100644 --- a/docs/output/Ext.SplitButton.html +++ b/docs/output/Ext.SplitButton.html @@ -1,4 +1,4 @@ -
Observable Component BoxComponent Button SplitButton
Package: | Ext |
Defined In: | SplitButton.js |
Class: | SplitButton |
Subclasses: | CycleButton |
Extends: | Button |
xtype: | splitbutton |
Observable Component BoxComponent Button SplitButton
Package: | Ext |
Defined In: | SplitButton.js |
Class: | SplitButton |
Subclasses: | CycleButton |
Extends: | Button |
// display a dropdown menu:
@@ -43,13 +43,13 @@ to create its subcomponents from that markup if applicable.
(Optional) The side of the Button box to render the arrow if the button has an associated menu. -Two values are allowed:
-(Optional) The side of the Button box to render the arrow if the button has an associated menu. +Two values are allowed:
+Defaults to 'right'.
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 @@ -143,11 +145,19 @@ child items when the browser changes its width:
var myPanel = <
}, {
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.
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.
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 @@ -156,9 +166,23 @@ directly after each form field wrapper to provide field clearing (defaults to which has been configured to use the FormLayout layout manager (e.g. Ext.form.FormPanel or specifying layout:'form') and either a fieldLabel is specified or isFormField=true is specified.
See Ext.layout.FormLayout.fieldTpl also.
See Ext.layout.FormLayout.fieldTpl also.
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.
@@ -169,7 +193,8 @@ which assigns a value by default:ctCls: 'x-box-layout-ct custom-class'
-tpl
to
+update the content area of the Component.The label text to display next to this Component (defaults to '').
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. @@ -183,11 +208,11 @@ Example use:
new Ext.FormPanel({
xtype: 'textfield',
fieldLabel: 'Name'
}]
-});
b
: Buttone
: EventObjectb
: Buttone
: EventObject(Optional) The side of the Button box to render the icon. Four values are allowed:
-(Optional) The side of the Button box to render the icon. Four values are allowed:
+Defaults to 'left'.
The unique id of this component (defaults to an auto-assigned id). You should assign an id if you need to be able to access the component later and you do @@ -413,14 +442,14 @@ right and left are set to the second. to the second, and the bottom is set to the third.
Defaults to:
{top:0, right:0, bottom:0, left:0}
Defaults to:
{top:0, right:0, bottom:0, left:0}
overflowText
.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',
@@ -456,9 +485,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.
(Optional) The size of the Button. Three values are allowed:
-Defaults to 'small'.
(Optional) The size of the Button. Three values are allowed:
+Defaults to 'small'.
handler
and toggleHandler
is
executed. Defaults to this Button.An array of events that, when fired, should trigger this component to
save its state (defaults to none). stateEvents
may be any type
@@ -560,13 +590,24 @@ Ext.Element.ap...
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.A Template used to create the Button's DOM structure.
-Instances, or subclasses which need a different DOM structure may provide a different -template layout in conjunction with an implementation of getTemplateArgs.A Template used to create the Button's DOM structure.
+Instances, or subclasses which need a different DOM structure may provide a different +template layout in conjunction with an implementation of getTemplateArgs.data
and
+tplWriteMode
configurations.Ext.XTemplate.overwrite
).Property | Defined By | |
---|---|---|
btnEl : Ext.Element An Element encapsulating the Button's clickable element. By default,
-this references a <button> element. Read o... An Element encapsulating the Button's clickable element. By default,
+take advantage of lazy instantiation and rendering. | Component | |
y : Number The local y (top) coordinate for this component if contained within a positioning container. | BoxComponent |
Property | Defined By | |
---|---|---|
btnEl : Ext.Element An Element encapsulating the Button's clickable element. By default,
+this references a <button> element. Read ... An Element encapsulating the Button's clickable element. By default,
this references a <button> element. Read only. | Button | |
disabled : Boolean Read-only. True if this button is disabled | Button | |
el : Ext.Element The Ext.Element which encapsulates this Component. Read-only.
This will usually be a <DIV> element created by the ... The Ext.Element which encapsulates this Component. Read-only. This will usually be a <DIV> element created by the class's onRender method, but @@ -598,12 +639,14 @@ config for a suggestion, or use a render listener directly:
-See also getEl | Component | |
hidden : Boolean Read-only. True if this button is hidden | Button | |
initialConfig : Object This Component's initial configuration specification. Read-only. | Component | |
menu : Menu
+ See also getEl | Component | |
hidden : Boolean Read-only. True if this button is hidden | Button | |
initialConfig : Object This Component's initial configuration specification. Read-only. | Component | |
menu : Menu The {@link Ext.menu.Menu Menu} object associated with this Button when configured with the {@link #menu} config option. | Button | |
ownerCt : Ext.Container This Component's owner Container (defaults to undefined, and is set automatically when
this Component is added to a C... | Component | |
pressed : Boolean Read-only. True if this button is pressed (only if enableToggle = true) | Button | |
rendered : Boolean True if this component has been rendered. Read-only. | Component |
Method | Defined By | |||
---|---|---|---|---|
SplitButton( Object config )
- Create a new menu button Create a new menu button Parameters:
| SplitButton | |||
addClass( string cls )
+Note: to access items within the Container see itemId. | Component | |||
pressed : Boolean Read-only. True if this button is pressed (only if enableToggle = true) | Button | |||
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 | |
---|---|---|
SplitButton( Object config )
+ Create a new menu button Create a new menu button Parameters:
| SplitButton | |
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|String o , string Optional. )
:
@@ -675,7 +718,7 @@ should usually not need to be called directly.Disable this component and fire the 'disable' event. Disable this component and fire the 'disable' event. Parameters:
| Component | |
enable()
:
- Ext.Component Enable this component and fire the 'enable' event. Enable this component and fire the 'enable' event. Parameters:
| Component | |
enableBubble( Object events )
+ Ext.ComponentEnable 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 @@ -684,13 +727,13 @@ this.getBubbleTarget() if present... Enables events fi 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 | |
findParentBy( Function fn )
+});Parameters:
| Observable | |
findParentBy( Function fn )
:
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
@@ -764,7 +807,7 @@ id is returned using g... | Button | |
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 | |
getTemplateArgs()
:
- Object This method returns an object which provides substitution parameters for the Template used
-to create this Button's DO... This method returns an object which provides substitution parameters for the Template used -to create this Button's DOM structure. -Instances or subclasses which use a different Template to create a different DOM structure may need to provide their -own implementation of this method. -The default implementation which provides data for the default template returns an Array containing the -following items: Parameters:
| Button | |
getText()
+ Array This method returns an Array which provides substitution parameters for the Template used
+to create this Button's DO... This method returns an Array which provides substitution parameters for the Template used +to create this Button's DOM structure. +Instances or subclasses which use a different Template to create a different DOM structure may need to provide their +own implementation of this method. +The default implementation which provides data for the default template returns an Array containing the +following items:
Parameters:
| Button | |
getText()
:
String Gets the text for this Button Gets the text for this Button Parameters:
| Button | |
getWidth()
:
@@ -835,7 +877,26 @@ to participate in determination of inherited xtypes.
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 Parameters:
| Component | |
nextSibling()
+the default), or true to check whether this Component is directly of the specified xtype.Returns:
| Component | |
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 ] )
:
@@ -882,20 +943,27 @@ event...Resume firing events. (see Parameters:
| Observable | |
setArrowHandler( Function handler , [Object scope ] )
:
- voidSets this button's arrow click handler. Sets this button's arrow click handler. Parameters:
| SplitButton | |
setDisabled( Boolean disabled )
+ voidSets this button's arrow click handler. Sets this button's arrow click handler. Parameters:
| SplitButton | |
setAutoScroll( Boolean scroll )
+ :
+ 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.ComponentConvenience function for setting disabled/enabled by boolean. Convenience function for setting disabled/enabled by boolean. Parameters:
| Component | |
setHandler( Function handler , [Object scope ] )
:
- Ext.ButtonAssigns this Button's click handler Assigns this Button's click handler Parameters:
| Button | |
setHeight( Number height )
+ Ext.ButtonAssigns this Button's click handler Assigns this Button's click handler Parameters:
| Button | |
setHeight( Number 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 )
+Returns:
| BoxComponent | |
setIcon( String icon )
+ :
+ Ext.ButtonSets the background image (inline style) of the button. This method also changes
+the value of the icon config inter... Sets the background image (inline style) of the button. This method also changes
+the value of the icon config internally. Parameters:
| Button | |
setIconClass( String cls )
:
- Ext.ButtonSets the CSS class that provides a background image to use as the button's icon. This method also changes
-the value ... Sets the CSS class that provides a background image to use as the button's icon. This method also changes
+ Ext.Button Sets the CSS class that provides a background image to use as the button's icon. This method also changes
+the value... Sets the CSS class that provides a background image to use as the button's icon. This method also changes
the value of the iconCls config internally. Parameters:
| Button | |
setPagePosition( Number x , Number y )
:
Ext.BoxComponentSets the page XY position of the component. To set the left and top instead, use setPosition.
@@ -922,9 +990,9 @@ This may be one of:
Sets this Button's text Sets this Button's text Parameters: | Button | |
setTooltip( String/Object tooltip. )
:
- Ext.ButtonSets the tooltip for this Button. Sets the tooltip for this Button. Parameters:
| Button | |
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 )
@@ -948,9 +1016,16 @@ after the If a state it passed, it becomes the pressed state otherwise the current state is toggled. If a state it passed, it becomes the pressed state otherwise the current state is toggled. Parameters:
| Button | |
un( String eventName , Function handler , [Object scope ] )
:
- voidRemoves an event handler (shorthand for removeListener.) Removes an event handler (shorthand for removeListener.) Parameters:
| Observable | |
updateBox( Object box )
+ voidRemoves an event handler (shorthand for removeListener.) Removes an event handler (shorthand for removeListener.) Parameters:
| Observable | |
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 | |
---|---|---|
afterrender :
+ Ext.BoxComponent Sets 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 | |
---|---|---|
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 | |
afterrender :
( Ext.Component this )
Fires after the component rendering is finished.
The afterrender event is fired after this Component has been rendere... Fires after the component rendering is finished. @@ -1008,7 +1083,9 @@ Fires after the component is hidden when calling theFires when the mouse hovers over the button Fires when the mouse hovers over the button Listeners will be called with the following arguments:
| Button | |
move :
( Ext.Component this , Number x , Number y )
- Fires after the component is moved. Fires after the component is moved. Listeners will be called with the following arguments:
| BoxComponent | |
render :
+ Fires after the component is moved. Fires after the component is moved. Listeners will be called with the following arguments:
| BoxComponent | |
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 )
|