ext js rowAction

来源:互联网 发布:java环境变量设置win10 编辑:程序博客网 时间:2024/06/08 18:48
var actions = new Array();
//        if (isGranted('_JobChangeCheck')) {
//            actions.push({
//                        iconCls : 'btn-check',
//                        qtip : '审核',
//                        style : 'margin:0 3px 0 3px'
//                    });
//        }
        if (isGranted('_JobChangeDel')) {
            actions.push({
                        iconCls : 'btn-del',
                        qtip : '删除',
                        style : 'margin:0 3px 0 3px'
                    });
        }
        if (isGranted('_JobChangeEdit')) {
            actions.push({
                        iconCls : 'btn-edit',
                        qtip : '编辑',
                        style : 'margin:0 3px 0 3px'
                    });
        }
        if (isGranted('_JobChangeQuery')) {
            actions.push({
                        iconCls : 'btn-operation',
                        qtip : '审批单',
                        style : 'margin:0 3px 0 3px'
                    })
        }
        this.rowActions = new Ext.ux.grid.RowActions({
                    header : '管理',
                    width : 125,
                    actions : actions
                });