X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/c930e9176a5a85509c5b0230e2bff5c22a591432..refs/tags/3.0.3:/docs/source/TreePanel.html diff --git a/docs/source/TreePanel.html b/docs/source/TreePanel.html index 436917de..4892cbbf 100644 --- a/docs/source/TreePanel.html +++ b/docs/source/TreePanel.html @@ -1,11 +1,17 @@ - - - The source code - - - - -
/** + + + The source code + + + + +
/*!
+ * Ext JS Library 3.0.3
+ * Copyright(c) 2006-2009 Ext JS, LLC
+ * licensing@extjs.com
+ * http://www.extjs.com/license
+ */
+
/** * @class Ext.tree.TreePanel * @extends Ext.Panel *

The TreePanel provides tree-structured UI representation of tree-structured data.

@@ -124,6 +130,13 @@ Ext.tree.TreePanel = Ext.extend(Ext.Panel, { enableDD : false, hlDrop : Ext.enableFx, pathSeparator: "/", + + /** + * @cfg {Array} bubbleEvents + *

An array of events that, when fired, should be bubbled to any parent container. + * Defaults to ['add', 'remove']. + */ + bubbleEvents: [], initComponent : function(){ Ext.tree.TreePanel.superclass.initComponent.call(this); @@ -309,6 +322,13 @@ Ext.tree.TreePanel = Ext.extend(Ext.Panel, { */ "checkchange", /** + * @event beforedblclick + * Fires before double click processing on a node. Return false to cancel the default action. + * @param {Node} node The node + * @param {Ext.EventObject} e The event object + */ + "beforedblclick", + /** * @event dblclick * Fires when a node is double clicked * @param {Node} node The node @@ -638,9 +658,9 @@ new Ext.tree.TreePanel({ */ selectPath : function(path, attr, callback){ attr = attr || "id"; - var keys = path.split(this.pathSeparator); - var v = keys.pop(); - if(keys.length > 0){ + var keys = path.split(this.pathSeparator), + v = keys.pop(); + if(keys.length > 1){ var f = function(success, node){ if(success && node){ var n = node.findChild(attr, v); @@ -916,6 +936,6 @@ new Ext.tree.TreePanel({ Ext.tree.TreePanel.nodeTypes = {}; -Ext.reg('treepanel', Ext.tree.TreePanel);

- +Ext.reg('treepanel', Ext.tree.TreePanel);
+ \ No newline at end of file