extjs7 classic actioncolumn 根据数据disable按钮

版本

7.4 classic 工具包

方法

使用isActionDisabled配置函数

{
    xtype: 'actioncolumn',
    items: [{
        iconCls: 'x-fa fa-stop-circle',
        handler: 'hBtnStop',
        isActionDisabled: function (view, rowIndex, colIndex, item, record) {
            return !record.get('playing');
        }
    }, {
        iconCls: 'x-fa fa-play-circle',
        handler: 'hBtnPlay',
        isActionDisabled: function (view, rowIndex, colIndex, item, record) {
            return record.get('playing');
        }
    }]
}

posted on 2022-04-11 22:38  路过君  阅读(22)  评论(0编辑  收藏  举报

导航