2013-07-22 45 views
1

我有一個的TreeGrid和2插件像多個插件 - ExtJS的4.1

 plugins: [ 
     { 
      Ext.create('Ext.grid.plugin.CellEditing', { 
       clicksToEdit: 1 
      }) 
     }, 
     { 
      ptype: 'treefilter', 
      allowParentFolders: true 
     } 
     ] 

如果我使用的是意志其中的一個運作良好,但如果我用這兩個,我會得到這樣的

錯誤

enter image description here

如何解決這個錯誤謝謝。

回答

1

您正在將您的Ext.create放在花括號{}中。刪除這些,你應該罰款:

plugins: [ 
    Ext.create('Ext.grid.plugin.CellEditing', { 
     clicksToEdit: 1 
    }), 
    { 
     ptype: 'treefilter', 
     allowParentFolders: true 
    } 
] 
+0

謝謝你,謝謝你好:) – freestyle