zoukankan      html  css  js  c++  java
  • 2.0添加行动作

        <link type="text/css" rel="stylesheet" href="http://www.cnblogs.com/extclient/Ext.ux.grid.RowActions.css"/>

        <script type="text/javascript" src="http://www.cnblogs.com/extclient/Ext.ux.grid.RowActions.js"></script>

            this.rowActions = new Ext.ux.grid.RowActions({
                id:'actions'
                ,header:'操作'
                ,widthIntercept:Ext.isSafari ? 4 : 2
                ,actions:[{iconCls:'editicon',qtip:'修改'    }
                        ,{iconCls:'deleteicon',qtip:'删除' }
                        ]
            });
           
            this.rowActions.on('action', this.onRowAction, this);

    this.cm = new Ext.grid.ColumnModel([

      ....

      ,this.rowActions

    ]);

            Ext.apply(this,{
                plugins:[
                    this.rowActions,
                    ....]

        ,onRowAction:function(grid, record, action, row, col) {
            switch(action) {
                case 'deleteicon':
                    this.deleteJlsEmdj()
                    break;
                case 'editicon':
                    this.editJlsEmdj();
                    break;
            }
        }

  • 相关阅读:
    qt映射器QSignalMapper的理解
    win10环境下安装Qt4.8、PyQt及development tools
    BZOJ1040 基环森林 找环+基础树形DP
    贪心 BZOJ1034
    HDU5293 树链剖分+树形DP
    BZOJ 1028 BZOJ 1029 //贪心
    BZOJ1025
    仙人掌图判定及求直径HDU3594 BZOJ1023
    BZOJ1021
    BZOJ1022
  • 原文地址:https://www.cnblogs.com/meetrice/p/2039764.html
Copyright © 2011-2022 走看看