Roo/bootstrap/NavHeaderbar.js
authorAlan Knowles <alan@roojs.com>
Tue, 4 Dec 2018 08:25:38 +0000 (16:25 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 4 Dec 2018 08:25:38 +0000 (16:25 +0800)
Roo/bootstrap/NavHeaderbar.js

index a0934f0..3f2fc98 100644 (file)
@@ -99,6 +99,12 @@ Roo.extend(Roo.bootstrap.NavHeaderbar, Roo.bootstrap.NavSimplebar,  {
         
         cfg.cls += this.inverse ? ' navbar-inverse navbar-dark bg-dark' : ' navbar-default';
         
+        if (['light','white'].indexOf(this.weight) > -1) {
+           cfg.cls += ['light','white'].indexOf(this.weight) > -1 ? ' navbar-light' : ' navbar-dark';
+       }
+       cfg.cls += ' bg-' + this.weight;
+        
+        
         if (['fixed-top','fixed-bottom','static-top'].indexOf(this.position)>-1) {
             cfg.cls += ' navbar-' + this.position + ' ' + this.position ;