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;
            }
        }

  • 相关阅读:
    C++构造与析构 yongmou
    坏习惯 yongmou
    Python 字符串方法
    python 列表推导式轻量级循环
    python 循环遍历字典元素
    python 短路逻辑和条件表达式
    python 迭代器
    一些关于面向对象设计的思考
    python map内建函数
    Python 列表
  • 原文地址:https://www.cnblogs.com/meetrice/p/2039764.html
Copyright © 2011-2022 走看看