projects
/
roojs1
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Uncommited changes synced
[roojs1]
/
Roo
/
bootstrap
/
NavSimplebar.js
diff --git
a/Roo/bootstrap/NavSimplebar.js
b/Roo/bootstrap/NavSimplebar.js
index
dfc468a
..
3459857
100644
(file)
--- a/
Roo/bootstrap/NavSimplebar.js
+++ b/
Roo/bootstrap/NavSimplebar.js
@@
-21,7
+21,7
@@
*
* @cfg {String} tag (header|footer|nav|div) default is nav
*
* @cfg {String} tag (header|footer|nav|div) default is nav
- *
+ *
@cfg {String} weight (light|primary|secondary|success|danger|warning|info|dark|white) default is light.
*
*
* @constructor
*
*
* @constructor
@@
-42,7
+42,7
@@
Roo.extend(Roo.bootstrap.NavSimplebar, Roo.bootstrap.Navbar, {
arrangement: '',
align : false,
arrangement: '',
align : false,
-
+ weight : 'light',
main : false,
main : false,
@@
-55,8
+55,13
@@
Roo.extend(Roo.bootstrap.NavSimplebar, Roo.bootstrap.Navbar, {
var cfg = {
tag : this.tag || 'div',
var cfg = {
tag : this.tag || 'div',
- cls : 'navbar'
+ cls : 'navbar
navbar-expand-lg
'
};
};
+ if (['light','white'].indexOf(this.weight) > -1) {
+ cfg.cls += ['light','white'].indexOf(this.weight) > -1 ? ' navbar-light' : ' navbar-dark';
+ }
+ cfg.cls += ' bg-' + this.weight;
+
cfg.cn = [
cfg.cn = [