X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/25ef3491bd9ae007ff1fc2b0d7943e6eaaccf775..10a866c12701c0a0afd0ac85dcdcf32a421514ac:/docs/output/Ext.tree.TreePanel.html?ds=inline diff --git a/docs/output/Ext.tree.TreePanel.html b/docs/output/Ext.tree.TreePanel.html index d60b393e..2aeea38d 100644 --- a/docs/output/Ext.tree.TreePanel.html +++ b/docs/output/Ext.tree.TreePanel.html @@ -1,4 +1,4 @@ -
Observable Component BoxComponent Container Panel TreePanel
Package: | Ext.tree |
Defined In: | TreePanel.js |
Class: | TreePanel |
Subclasses: | ColumnTree |
Extends: | Panel |
xtype: | treepanel |
The TreePanel provides tree-structured UI representation of tree-structured data.
+Observable Component BoxComponent Container Panel TreePanel
Package: | Ext.tree |
Defined In: | TreePanel.js |
Class: | TreePanel |
Extends: | Panel |
The TreePanel provides tree-structured UI representation of tree-structured data.
TreeNodes added to the TreePanel may each contain metadata used by your application in their attributes property.
A TreePanel must have a root node before it is rendered. This may either be @@ -87,9 +87,9 @@ Note: Setting autoHeight: true means that t...
true
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
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.
true
to use overflow:'auto' on the panel's body element and show scroll bars automatically when
-necessary, false
to clip any overflowing content (defaults to false
).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
).'x-panel'
).
@@ -154,8 +154,18 @@ Ext.Element.addClass (defau...An array of events that, when fired, should be bubbled to any parent container. -Defaults to ['add', 'remove'].
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 [].
'right'
,
'left'
and 'center'
(defaults to 'right'
).buttons
will be used as items
for the toolbar in
@@ -194,7 +204,8 @@ which assigns a value by default:
ctCls: 'x-box-layout-ct custom-class'
-tpl
to
+update the content area of the Component.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.
@@ -313,8 +324,8 @@ will be created automatically if ...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).
@@ -581,7 +592,10 @@ when it is disabled, but masking the panel can provide an additional visual cue
disabled.75
)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',
@@ -616,9 +630,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').
data
and
+tplWriteMode
configurations.Ext.XTemplate.overwrite
).Note: see the Note for el
also.
Method | Defined By | |||
---|---|---|---|---|
TreePanel( Object config )
- Parameters:
| TreePanel | |||
add( Object/Array component , Object (Optional) , Object (Optional) )
- :
- Ext.ComponentAdds Component(s) to this Container.
-Description :
-<ul class="mdetail-params">
-Fires the beforeadd event before ad... Adds Component(s) to this Container. -Description : -
Notes : -
Parameters:
| 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 | |||
root : Ext.tree.TreeNode The root node of this tree. | TreePanel |
Method | Defined By | |
---|---|---|
TreePanel( Object config )
+ Parameters:
| TreePanel | |
add( Object/Array component , Object (Optional) , Object (Optional) )
+ :
+ Ext.ComponentAdds Component(s) to this Container.
+Description :
+<ul class="mdetail-params">
+Fires the beforeadd event before addin... Adds Component(s) to this Container. +Description : +
Notes : +
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|String o , string Optional. )
:
@@ -980,10 +1006,14 @@ Or a shorthand syntax:scope: this });Returns:
| Observable | |
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
-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 | |
cloneConfig( Object overrides )
+ 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
+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 | |
canLayout()
+ :
+ void We can only lay out if there is a view area in which to layout.
+display:none on the layout target, *or any of its par... We can only lay out if there is a view area in which to layout.
+display:none on the layout target, *or any of its parent elements* will mean it has no view area. Parameters:
| Container | |
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 | |
collapse( Boolean animate )
@@ -999,7 +1029,7 @@ cancel the collapse action if it returns false.Destroys this component by purging any event listeners, removing the component's element from the DOM,
removing the component from its Ext.Container (if applicable) and unregistering it from
Ext.ComponentMgr. Destruction is generally handled automatically by the framework and this method
-should usually not need to be called directly. Parameters:
| Component | |
enableBubble( Object events )
+should usually not need to be called directly.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 @@ -1008,13 +1038,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 | |
expand( Boolean animate )
+});Parameters:
| Observable | |
expand( Boolean animate )
:
Ext.PanelExpands the panel body so that it becomes visible. Fires the beforeexpand event which will
cancel the expand action ... Expands the panel body so that it becomes visible. Fires the beforeexpand event which will
@@ -1066,9 +1096,25 @@ by calling Provides the link for Observable's fireEvent method to bubble up the ownership hierarchy. Provides the link for Observable's fireEvent method to bubble up the ownership hierarchy. Parameters:
| Component | |
getChecked( [String attribute ], [TreeNode startNode ] )
:
- ArrayRetrieve an array of checked nodes, or an array of a specific attribute of checked nodes (e.g. "id") Retrieve an array of checked nodes, or an array of a specific attribute of checked nodes (e.g. "id") Parameters:
| TreePanel | |
getEl()
+ Array Retrieve an array of checked nodes, or an array of a specific attribute of checked nodes (e.g. 'id') Retrieve an array of checked nodes, or an array of a specific attribute of checked nodes (e.g. 'id') Parameters:
| TreePanel | |
getEl()
:
- Element Returns the container element for this TreePanel. Returns the container element for this TreePanel. Parameters:
| TreePanel | |
getFrameHeight()
+ Ext.Element Returns the Ext.Element which encapsulates this Component.
+This will usually be a <DIV> element created by the cla... Returns the Ext.Element which encapsulates this Component. +This will usually be a <DIV> element created by the class's onRender method, but +that may be overridden using the autoEl config. +Note: this element will not be available until this Component has been rendered. + To add listeners for DOM events to this Component (as opposed to listeners +for this Component's own Observable events), see the listeners config for a suggestion, +or use a render listener directly:
Parameters:
| Component | |
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
@@ -1098,10 +1144,10 @@ id is returned using g... | Component | |
getLayoutTarget()
:
- Ext.Element Returns the Element to be used to contain the child Components of this Container.
-An implementation is provided whic... Returns the Element to be used to contain the child Components of this Container. -An implementation is provided which returns the Container's Element, but -if there is a more complex structure to a Container, this may be overridden to return + Ext.Element Returns the Element to be used to contain the child Components of this Container.
+An implementation is provided which... Returns the Element to be used to contain the child Components of this Container. +An implementation is provided which returns the Container's Element, but +if there is a more complex structure to a Container, this may be overridden to return the element into which the layout renders child Components. Parameters:
| Container | |
getLoader()
:
Ext.tree.TreeLoader Returns the default Ext.tree.TreeLoader for this TreePanel. Returns the default Ext.tree.TreeLoader for this TreePanel. Parameters:
| TreePanel | |
getNodeById( String id )
@@ -1112,7 +1158,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 | |
getRootNode()
+This Element is returned as the resizeEl .Parameters:
| BoxComponent | |
getRootNode()
:
Node Returns this root node for this tree Returns this root node for this tree Parameters:
| TreePanel | |
getSelectionModel()
:
@@ -1172,7 +1218,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 ] )
:
@@ -1220,7 +1285,9 @@ If events were suspended using the queueSuspended parameter, the
events fired during event suspension will be sent to any listeners now.Parameters:
| Observable | |
selectPath( String path , [String attr ], [Function callback ] )
:
voidSelects the node in this tree at the specified path. A path can be retrieved from a node with Ext.data.Node.getPath Selects the node in this tree at the specified path. A path can be retrieved from a node with Ext.data.Node.getPath Parameters:
| TreePanel | |
setHeight( Number height )
+(bSuccess, oSelNode) where bSuccess is if the selection was successful and oSelNode is the selected node.Returns:
| TreePanel | |
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 | |
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:
| Panel | |
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 | |
---|---|---|
activate :
( Ext.Panel p )
@@ -1292,7 +1364,9 @@ after the Fires after the Panel has been visually activated.
Note that Panels do not directly support being activated, but some Panel subclasses
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 | |
afterlayout :
+activate and deactivate events under the control of the TabPanel. Listeners will be called with the following arguments:
| Panel | |
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 )
@@ -1351,7 +1425,7 @@ passed to handlers has the following properties:to be inserted by setting them on this object. Listeners will be called with the following arguments:
| TreePanel | |
beforeremove :
( Tree tree , Node parent , Node node )
Fires before a child is removed from a node in this tree, return false to cancel the remove. Fires before a child is removed from a node in this tree, return false to cancel the remove. Listeners will be called with the following arguments:
| TreePanel | |
beforerender :
@@ -1386,7 +1460,13 @@ Panel subclasses do (like
( Ext.Panel p )
Fires after the Panel has been collapsed. Fires after the Panel has been collapsed. Listeners will be called with the following arguments:
| Panel | |
collapsenode :
( Node node )
- Fires when a node is collapsed Fires when a node is collapsed Listeners will be called with the following arguments:
| TreePanel | |
contextmenu :
+ Fires when a node is collapsed Fires when a node is collapsed Listeners will be called with the following arguments:
| TreePanel | |
containerclick :
+ ( Tree this , Ext.EventObject e )
+ Fires when the tree container is clicked Fires when the tree container is clicked Listeners will be called with the following arguments:
| TreePanel | |
containercontextmenu :
+ ( Tree this , Ext.EventObject e )
+ Fires when the tree container is right clicked Fires when the tree container is right clicked Listeners will be called with the following arguments:
| TreePanel | |
containerdblclick :
+ ( Tree this , Ext.EventObject e )
+ Fires when the tree container is double clicked Fires when the tree container is double clicked Listeners will be called with the following arguments:
| TreePanel | |
contextmenu :
( Node node , Ext.EventObject e )
Fires when a node is right clicked. To display a context menu in response to this
event, first create a Menu object ... Fires when a node is right clicked. To display a context menu in response to this
@@ -1494,7 +1574,9 @@ passed to handlers has the following properties: Listeners will be called with the following arguments:
| TreePanel | |
remove :
( Tree tree , Node parent , Node node )
- Fires when a child node is removed from a node in this tree. Fires when a child node is removed from a node in this tree. Listeners will be called with the following arguments:
| TreePanel | |
render :
+ Fires when a child node is removed from a node in this tree. Fires when a child node is removed from a node in this tree. Listeners will be called with the following arguments:
| TreePanel | |
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 )
|