Roo/bootstrap/Navbar.Item.js
authorJulian Knowles <julian@roojs.com>
Wed, 22 Jan 2014 10:29:46 +0000 (18:29 +0800)
committerJulian Knowles <julian@roojs.com>
Wed, 22 Jan 2014 10:29:46 +0000 (18:29 +0800)
Roo/bootstrap/Navbar.Item.js

index 56b72c2..aff9165 100644 (file)
@@ -39,6 +39,10 @@ Roo.extend(Roo.bootstrap.Navbar.Item, Roo.bootstrap.Component,  {
                cfg.cn[0].html = this.html;
            }
            
+           if (this.icon) {
+               cfg.cn[0].html = '<i class="icon-"'+this.icon+'"></i>'+cfg.cn[0].html || this.html
+           }
+           
            return cfg;
        }