roojs-bootstrap.js
authorAlan Knowles <alan@roojs.com>
Fri, 8 Jan 2021 04:43:09 +0000 (12:43 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 8 Jan 2021 04:43:09 +0000 (12:43 +0800)
roojs-bootstrap-debug.js

roojs-bootstrap-debug.js
roojs-bootstrap.js

index 0e3c7a8..1affb44 100644 (file)
@@ -6704,7 +6704,8 @@ Roo.extend(Roo.bootstrap.breadcrumb.Item, Roo.bootstrap.Component,  {
     {
 
         var cfg = {
-            tag: 'li'
+            tag: 'li',
+            cls : 'breadcrumb-item' + (this.active ? ' active' : '')
         };
         if (this.href !== false) {
             cfg.cn = [{
index 6bb7ecb..a01bfb9 100644 (file)
@@ -276,7 +276,7 @@ return;}this.el.removeClass('disabled');return;},setActive:function(A){if(this.a
 Roo.bootstrap.breadcrumb.Nav=function(A){Roo.bootstrap.breadcrumb.Nav.superclass.constructor.call(this,A);};Roo.extend(Roo.bootstrap.breadcrumb.Nav,Roo.bootstrap.Component,{getAutoCreate:function(){var A={tag:'nav',cn:[{tag:'ol',cls:'breadcrumb'}]};return A;
 },initEvents:function(){this.olEl=this.el.select('ol',true).first();},getChildContainer:function(){return this.olEl;}});
 // Roo/bootstrap/breadcrumb/Item.js
-Roo.bootstrap.breadcrumb.Item=function(A){Roo.bootstrap.breadcrumb.Item.superclass.constructor.call(this,A);this.addEvents({"click":true});};Roo.extend(Roo.bootstrap.breadcrumb.Item,Roo.bootstrap.Component,{href:false,html:'',getAutoCreate:function(){var A={tag:'li'}
+Roo.bootstrap.breadcrumb.Item=function(A){Roo.bootstrap.breadcrumb.Item.superclass.constructor.call(this,A);this.addEvents({"click":true});};Roo.extend(Roo.bootstrap.breadcrumb.Item,Roo.bootstrap.Component,{href:false,html:'',getAutoCreate:function(){var A={tag:'li',cls:'breadcrumb-item'+(this.active?' active':'')}
 ;if(this.href!==false){A.cn=[{tag:'a',href:this.href,html:this.html}];}else{A.html=this.html;}return A;},initEvents:function(){if(this.href){this.el.select('a',true).first().onClick(this.onClick,this)}},onClick:function(e){e.preventDefault();this.fireEvent('click',this,e);
 }});
 // Roo/bootstrap/Row.js