Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

还没有.icon的方法,建议加上。呵呵 #72

Open
GoogleCodeExporter opened this issue Apr 14, 2016 · 0 comments
Open

还没有.icon的方法,建议加上。呵呵 #72

GoogleCodeExporter opened this issue Apr 14, 2016 · 0 comments

Comments

@GoogleCodeExporter
Copy link


因为需要根据返回的内容动态的更改icon.自己看了源码。依葫
芦画瓢给改了。我贴一下代码
源码里  110行加上        .icon(config.icon);
然后加上这个方法
    //add by hen
    icon:function(ico){
            var DOM = this.DOM;
           var that = this,
             iconBg = ico && (_isIE6 ? {png: 'icons/' + ico + '.png'}  : {backgroundImage: 'url(\'' +that. config.path + '/skins/icons/' + ico + '.png\')'});
            DOM.icon[0].style.display = ico ? '' : 'none';
            DOM.iconBg.css(iconBg || {background: 'none'});
            return this;
    },

Original issue reported on code.google.com by [email protected] on 12 Mar 2013 at 6:19

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant