ITeye博客

How to make extjs grid selectable

standalone · 2012-07-05 14:42 · javascript · 编程语言 · Markdown


Ext.core.Element.prototype.unselectable = function() {
            var me = this;
            if (me.dom.className.match(/(x-grid-table|x-grid-view)/)) {
                return me;
            }
            me.dom.unselectable = "on";
            me.swallowEvent("selectstart", true);
            me.applyStyles("-moz-user-select:none;-khtml-user-select:none;");
            me.addCls(Ext.baseCSSPrefix + 'unselectable');
            return me;
        };

I copied the code from http://kevin.chibaole.com/135

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。