jQuery MiniUI

 找回密码
 立即注册
查看: 2456|回复: 0
打印 上一主题 下一主题

请问如何全局设置dataGrid的onDrawcell属性 [复制链接]

Rank: 8Rank: 8

楼主
发表于 2020-4-2 17:00:14 |显示全部楼层
(function () {
        function init(){
            var datagrid = this;
            datagrid.on("drawcell", function(e){
               
            });
        }

        var set = mini.DataGrid.prototype.set;
        mini.DataGrid.prototype.set = function(){
            if (!this.inited) {
                init.call(this);
                this.inited = true;
            }
            set.apply(this, arguments);
        }
    })();

Archiver|普加软件

GMT+8, 2024-5-23 02:03 , Processed in 1.056589 second(s), 9 queries .

Powered by Discuz! X2

© 2001-2011 Comsenz Inc.

回顶部