Voici mon code. J'utilisais avec ExtJS 3 des TreeNode mais ils ne sont plus disponibles dans la version 4.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23 Ext.define('CcTreePanel', { extend: 'Ext.tree.Panel', constructor: function(config){ this.store = Ext.create('Ext.data.TreeStore', { root: { expanded: true, text:"", user:"", status:"", } }); config = Ext.apply({ store: this.store, rootVisible: false }, config); this.callParent([config]); }, addNode: ??? addLink: ??? });
Partager