-<!DOCTYPE html><html><head><title>Sencha Documentation Project</title><link rel="stylesheet" href="../reset.css" type="text/css"><link rel="stylesheet" href="../prettify.css" type="text/css"><link rel="stylesheet" href="../prettify_sa.css" type="text/css"><script type="text/javascript" src="../prettify.js"></script></head><body onload="prettyPrint()"><pre class="prettyprint"><pre><span id='Ext-tree.View'>/**
+<!DOCTYPE html>
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+ <title>The source code</title>
+ <link href="../prettify/prettify.css" type="text/css" rel="stylesheet" />
+ <script type="text/javascript" src="../prettify/prettify.js"></script>
+ <style type="text/css">
+ .highlight { display: block; background-color: #ddd; }
+ </style>
+ <script type="text/javascript">
+ function highlight() {
+ document.getElementById(location.hash.replace(/#/, "")).className = "highlight";
+ }
+ </script>
+</head>
+<body onload="prettyPrint(); highlight();">
+ <pre class="prettyprint lang-js"><span id='Ext-tree-View'>/**
</span> * @class Ext.tree.View
* @extends Ext.view.Table
*/
blockRefresh: true,
-<span id='Ext-tree.View-cfg-rootVisible'> /**
+<span id='Ext-tree-View-cfg-rootVisible'> /**
</span> * @cfg {Boolean} rootVisible <tt>false</tt> to hide the root node (defaults to <tt>true</tt>)
*/
rootVisible: true,
-<span id='Ext-tree.View-cfg-animate'> /**
+<span id='Ext-tree-View-cfg-animate'> /**
</span> * @cfg {Boolean} animate <tt>true</tt> to enable animated expand/collapse (defaults to the value of {@link Ext#enableFx Ext.enableFx})
*/
var me = this,
animWrap;
- if (!me.animate) {
+ if (!me.rendered || !me.animate) {
return;
}
var me = this,
animWrap;
- if (!me.animate) {
+ if (!me.rendered || !me.animate) {
return;
}
animWrap.isAnimating = true;
},
-<span id='Ext-tree.View-method-isAnimating'> /**
+<span id='Ext-tree-View-method-isAnimating'> /**
</span> * Checks if a node is currently undergoing animation
* @private
* @param {Ext.data.Model} node The node
return data;
},
-<span id='Ext-tree.View-method-expand'> /**
+<span id='Ext-tree-View-method-expand'> /**
</span> * Expand a record that is loaded in the view.
* @param {Ext.data.Model} record The record to expand
* @param {Boolean} deep (optional) True to expand nodes all the way down the tree hierarchy.
return record.expand(deep, callback, scope);
},
-<span id='Ext-tree.View-method-collapse'> /**
+<span id='Ext-tree-View-method-collapse'> /**
</span> * Collapse a record that is loaded in the view.
* @param {Ext.data.Model} record The record to collapse
* @param {Boolean} deep (optional) True to collapse nodes all the way up the tree hierarchy.
return record.collapse(deep, callback, scope);
},
-<span id='Ext-tree.View-method-toggle'> /**
+<span id='Ext-tree-View-method-toggle'> /**
</span> * Toggle a record between expanded and collapsed.
* @param {Ext.data.Record} recordInstance
*/
e.getTarget(this.cellSelector, 10, true).removeCls(this.expanderIconOverCls);
},
-<span id='Ext-tree.View-method-getTreeStore'> /**
+<span id='Ext-tree-View-method-getTreeStore'> /**
</span> * Gets the base TreeStore from the bound TreePanel.
*/
getTreeStore: function() {
});
}
}
-});</pre></pre></body></html>
\ No newline at end of file
+});</pre>
+</body>
+</html>