【问题标题】:Why is ExtJS 4.2.2 gridpanel actioncolumn getTip not working?为什么 ExtJS 4.2.2 网格面板操作列 getTip 不起作用?
【发布时间】:2014-02-08 08:30:55
【问题描述】:

看起来很简单,就像 actioncolumn getTip 配置应该做 API 所说的那样。为什么不呢?

{
    xtype: 'actioncolumn',
    text: 'Actions',
    align: 'center',
    dataIndex: 'name',
    items: [{
        icon: './images/atlas/icons/blue/settings-close-b.png',
        iconCls: 'actionColumnOneIcon',
        getTip: function (v, metadata, rec, row, col, store) {
            return 'delete ' + rec.get('name');
        },
        handler: function (grid, rowIndex, colIndex, item, event, record, row) {
            this.fireEvent('aggHostGridIconClick', grid, record, 'delete');
        }
    }],
    width: 75
}

【问题讨论】:

    标签: extjs4.2


    【解决方案1】:

    我们必须在 ExtJS 框架中初始化工具提示单例类。在您的 app.js 的启动函数中添加以下代码。

    Ext.QuickTips.init();
    

    告诉我。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-06-22
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多