X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/c930e9176a5a85509c5b0230e2bff5c22a591432..25ef3491bd9ae007ff1fc2b0d7943e6eaaccf775:/docs/source/ListSelector.html diff --git a/docs/source/ListSelector.html b/docs/source/ListSelector.html deleted file mode 100644 index bd111411..00000000 --- a/docs/source/ListSelector.html +++ /dev/null @@ -1,61 +0,0 @@ - -
-// Implementation class for created the tree powered form field -ListSelector = Ext.extend(Ext.ux.TreeSelector, { - maxHeight:200, - listenForLoad: false, - initComponent : function(){ - - this.tree = new Ext.tree.TreePanel({ - animate:false, - border:false, - width: this.treeWidth || 180, - autoScroll:true, - useArrows:true, - selModel: new Ext.tree.ActivationModel(), - loader : new ListLoader({store: this.store}) - }); - - var root = new Ext.tree.AsyncTreeNode({ - text: 'All Lists', - id: 'root', - leaf: false, - iconCls: 'icon-folder', - expanded: true, - isFolder: true - }); - this.tree.setRootNode(root); - - this.tree.on('render', function(){ - this.store.bindTree(this.tree); - }, this); - - ListSelector.superclass.initComponent.call(this); - - // selecting folders is not allowed, so filter them - this.tree.getSelectionModel().on('beforeselect', this.beforeSelection, this); - - // if being rendered before the store is loaded, reload when it is loaded - if(this.listenForLoad) { - this.store.on('load', function(){ - root.reload(); - }, this, { - single: true - }); - } - }, - - beforeSelection : function(tree, node){ - if(node && node.attributes.isFolder){ - node.toggle(); - return false; - } - } -});- - \ No newline at end of file