X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=docs%2Fsrc%2FRoo_bootstrap_NavSimplebar.js.html;fp=docs%2Fsrc%2FRoo_bootstrap_NavSimplebar.js.html;h=25b7d70fb7ce9937f91cb1b2380543cb1eb5785b;hb=9ff8ded6bbbd258ecd646184ba26020874e2c085;hp=0000000000000000000000000000000000000000;hpb=2542b67d1a0768025056f2f330bfe50b64d1ad38;p=roojs1 diff --git a/docs/src/Roo_bootstrap_NavSimplebar.js.html b/docs/src/Roo_bootstrap_NavSimplebar.js.html new file mode 100644 index 0000000000..25b7d70fb7 --- /dev/null +++ b/docs/src/Roo_bootstrap_NavSimplebar.js.html @@ -0,0 +1,125 @@ +/home/alan/gitlive/roojs1/Roo/bootstrap/NavSimplebar.js/* + * - LGPL + * + * navbar + * + */ + +/** + * @class Roo.bootstrap.NavSimplebar + * @extends Roo.bootstrap.Navbar + * Bootstrap Sidebar class + * + * @cfg {Boolean} inverse is inverted color + * + * @cfg {String} type (nav | pills | tabs) + * @cfg {Boolean} arrangement stacked | justified + * @cfg {String} align (left | right) alignment + * + * @cfg {Boolean} main (true|false) main nav bar? default false + * @cfg {Boolean} loadMask (true|false) loadMask on the bar + * + * @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 + * Create a new Sidebar + * @param {Object} config The config object + */ + + +Roo.bootstrap.NavSimplebar = function(config){ + Roo.bootstrap.NavSimplebar.superclass.constructor.call(this, config); +}; + +Roo.extend(Roo.bootstrap.NavSimplebar, Roo.bootstrap.Navbar, { + + inverse: false, + + type: false, + arrangement: '', + align : false, + + weight : 'light', + + main : false, + + + tag : false, + + + getAutoCreate : function(){ + + + var cfg = { + tag : this.tag || 'div', + cls : 'navbar navbar-expand-lg roo-navbar-simple' + }; + 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 (this.inverse) { + cfg.cls += ' navbar-inverse'; + + } + + // i'm not actually sure these are really used - normally we add a navGroup to a navbar + + //if (Roo.bootstrap.version == 4) { + // return cfg; + //} + + cfg.cn = [ + { + cls: 'nav', + tag : 'ul' + } + ]; + + + this.type = this.type || 'nav'; + if (['tabs','pills'].indexOf(this.type) != -1) { + cfg.cn[0].cls += ' nav-' + this.type + + + } else { + if (this.type!=='nav') { + Roo.log('nav type must be nav/tabs/pills') + } + cfg.cn[0].cls += ' navbar-nav' + } + + + + + if (['stacked','justified'].indexOf(this.arrangement) != -1) { + cfg.cn[0].cls += ' nav-' + this.arrangement; + } + + + if (this.align === 'right') { + cfg.cn[0].cls += ' navbar-right'; + } + + + + + return cfg; + + + } + + + +}); + + + + + + + \ No newline at end of file