roojs-bootstrap.js
authoredward <edward@roojs.com>
Thu, 10 Mar 2016 05:16:28 +0000 (13:16 +0800)
committeredward <edward@roojs.com>
Thu, 10 Mar 2016 05:16:28 +0000 (13:16 +0800)
roojs-bootstrap-debug.js

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

index c77672c..730642b 100644 (file)
@@ -26361,7 +26361,6 @@ Roo.extend(Roo.bootstrap.DocumentViewer, Roo.bootstrap.Component,  {
  * @class Roo.bootstrap.NavProgressBar
  * @extends Roo.bootstrap.Component
  * Bootstrap NavProgressBar class
- * @cfg {String} navId - reference Id for nav progress bar.
  * 
  * @constructor
  * Create a new nav progress bar
@@ -26370,7 +26369,8 @@ Roo.extend(Roo.bootstrap.DocumentViewer, Roo.bootstrap.Component,  {
 
 Roo.bootstrap.NavProgressBar = function(config){
     Roo.bootstrap.NavProgressBar.superclass.constructor.call(this, config);
-    this.items = [];
+
+    this.bullets = this.bullets || [];
    
 //    Roo.bootstrap.NavProgressBar.register(this);
      this.addEvents({
@@ -26388,8 +26388,9 @@ Roo.bootstrap.NavProgressBar = function(config){
 
 Roo.extend(Roo.bootstrap.NavProgressBar, Roo.bootstrap.Component,  {
     
-    items : [],
-    navId : '',
+    bullets : false,
+    barItems : false,
+    
     
     getAutoCreate : function()
     {
@@ -26401,8 +26402,29 @@ Roo.extend(Roo.bootstrap.NavProgressBar, Roo.bootstrap.Component,  {
         }
         
         return cfg;
+        
+    },
+    
+    onRender : function(ct, position) 
+    {
+        Roo.bootstrap.NavProgressBar.superclass.onRender.call(this, ct, position);
+        
+        if(this.bullets.length){
+            Roo.each(this.bullets, function(i){
+               
+            }, this);
+        }
+        
+        
+    },
+    
+    initEvents: function() 
+    {
+        Roo.log('items!!!!!!!!!!!1');
+        Roo.log(this.items);
     }
 //    
+//    
 //    /**
 //    * sets the active Navigation item
 //    * @param {Roo.bootstrap.NavProgressItem} the new current navitem
@@ -26603,9 +26625,9 @@ Roo.extend(Roo.bootstrap.NavProgressBar, Roo.bootstrap.Component,  {
  * @class Roo.bootstrap.NavProgressItem
  * @extends Roo.bootstrap.Component
  * Bootstrap NavProgressItem class
- * @cfg {String} tabId the tab that this item activates.
  * @cfg {Boolean} active (true|false) Is item active default false
  * @cfg {Boolean} disabled (true|false) Is item active default false
+ * @cfg {String} html
  * 
  * @constructor
  * Create a new NavProgressItem
@@ -26636,17 +26658,23 @@ Roo.bootstrap.NavProgressItem = function(config){
 
 Roo.extend(Roo.bootstrap.NavProgressItem, Roo.bootstrap.Component,  {
     
-    tabId : '',
     active : false,
     disabled : false,
+    html : '',
     
     getAutoCreate : function()
     {
          
         var cfg = {
             tag: 'li',
-            cls: 'roo-navigation-bar-item'
-            
+            cls: 'roo-navigation-bar-item',
+            cn : [
+                {
+                    tag : 'span',
+                    cls : 'roo-navigation-bar-item-text',
+                    html : this.html
+                }
+            ]
         }
         
         if (this.active) {
@@ -26657,24 +26685,12 @@ Roo.extend(Roo.bootstrap.NavProgressItem, Roo.bootstrap.Component,  {
         }
         
         return cfg;
+    },
+    
+    initEvents: function() 
+    {
+        Roo.log('bar item init???');
     }
-//    initEvents: function() 
-//    {
-//        if (typeof (this.menu) != 'undefined') {
-//            this.menu.parentType = this.xtype;
-//            this.menu.triggerEl = this.el;
-//            this.menu = this.addxtype(Roo.apply({}, this.menu));
-//        }
-//        
-//        this.el.select('a',true).on('click', this.onClick, this);
-//        
-//        if(this.tagtype == 'span'){
-//            this.el.select('span',true).on('click', this.onClick, this);
-//        }
-//       
-//        // at this point parent should be available..
-//        this.parent().register(this);
-//    },
 //    
 //    onClick : function(e)
 //    {
index 6bb3369..0e63757 100644 (file)
@@ -1100,8 +1100,9 @@ this.imageEl=this.el.select('.roo-document-viewer-image',true).first();this.imag
 this.trashBtn=this.el.select('.roo-document-viewer-trash',true).first();this.trashBtn.setVisibilityMode(Roo.Element.DISPLAY).originalDisplay='block';this.bodyEl.on('click',this.onClick,this);this.trashBtn.on('click',this.onTrash,this);},initial:function(){this.fireEvent('initial',this);
 },onClick:function(e){e.preventDefault();this.fireEvent('click',this);},onTrash:function(e){e.preventDefault();this.fireEvent('trash',this);}});
 // Roo/bootstrap/NavProgressBar.js
-Roo.bootstrap.NavProgressBar=function(A){Roo.bootstrap.NavProgressBar.superclass.constructor.call(this,A);this.items=[];this.addEvents({'changed':true});};Roo.extend(Roo.bootstrap.NavProgressBar,Roo.bootstrap.Component,{items:[],navId:'',getAutoCreate:function(){var A=Roo.apply({},Roo.bootstrap.NavProgressBar.superclass.getAutoCreate.call(this));
-A={tag:'ul',cls:'roo-navigation-bar'};return A;}});
+Roo.bootstrap.NavProgressBar=function(A){Roo.bootstrap.NavProgressBar.superclass.constructor.call(this,A);this.bullets=this.bullets||[];this.addEvents({'changed':true});};Roo.extend(Roo.bootstrap.NavProgressBar,Roo.bootstrap.Component,{bullets:false,barItems:false,getAutoCreate:function(){var A=Roo.apply({},Roo.bootstrap.NavProgressBar.superclass.getAutoCreate.call(this));
+A={tag:'ul',cls:'roo-navigation-bar'};return A;},onRender:function(ct,A){Roo.bootstrap.NavProgressBar.superclass.onRender.call(this,ct,A);if(this.bullets.length){Roo.each(this.bullets,function(i){},this);}},initEvents:function(){Roo.log('items!!!!!!!!!!!1');
+Roo.log(this.items);}});
 // Roo/bootstrap/NavProgressItem.js
-Roo.bootstrap.NavProgressItem=function(A){Roo.bootstrap.NavProgressItem.superclass.constructor.call(this,A);this.addEvents({"click":true,'changed':true});};Roo.extend(Roo.bootstrap.NavProgressItem,Roo.bootstrap.Component,{tabId:'',active:false,disabled:false,getAutoCreate:function(){var A={tag:'li',cls:'roo-navigation-bar-item'};if(this.active){A.cls+=' active';
-}if(this.disabled){A.cls+=' disabled';}return A;}});
+Roo.bootstrap.NavProgressItem=function(A){Roo.bootstrap.NavProgressItem.superclass.constructor.call(this,A);this.addEvents({"click":true,'changed':true});};Roo.extend(Roo.bootstrap.NavProgressItem,Roo.bootstrap.Component,{active:false,disabled:false,html:'',getAutoCreate:function(){var A={tag:'li',cls:'roo-navigation-bar-item',cn:[{tag:'span',cls:'roo-navigation-bar-item-text',html:this.html}]};if(this.active){A.cls+=' active';
+}if(this.disabled){A.cls+=' disabled';}return A;},initEvents:function(){Roo.log('bar item init???');}});