【问题标题】:Multiple plugins in one treegrid (fail) - Extjs 4.1一个树网格中的多个插件(失败) - Extjs 4.1
【发布时间】:2013-07-22 16:14:49
【问题描述】:

我有一个 treegrid 和 2 个类似的插件

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

如果我使用其中一个效果很好,但如果我同时使用两个,我会得到类似的错误

如何解决这个错误谢谢。

【问题讨论】:

    标签: plugins tree grid extjs4.1


    【解决方案1】:

    您将Ext.create 括在大括号{} 中。删除那些,你应该没问题:

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-04-03
      • 1970-01-01
      • 1970-01-01
      • 2012-02-19
      • 2013-11-25
      相关资源
      最近更新 更多