sync
[roojs1] / Roo / bootstrap / breadcrumb / Nav.js
1 /*
2  * - LGPL
3  *
4  *  Breadcrumb Nav
5  * 
6  */
7 Roo.namespace('Roo.bootstrap.breadcrumb');
8
9
10 /**
11  * @class Roo.bootstrap.breadcrumb.Nav
12  * @extends Roo.bootstrap.Component
13  * Bootstrap Breadcrumb Nav Class
14  *  
15  * @children Roo.bootstrap.breadcrumb.Item
16  * 
17  * @constructor
18  * Create a new breadcrumb.Nav
19  * @param {Object} config The config object
20  */
21
22
23 Roo.bootstrap.breadcrumb.Nav = function(config){
24     Roo.bootstrap.breadcrumb.Nav.superclass.constructor.call(this, config);
25     
26     
27 };
28
29 Roo.extend(Roo.bootstrap.breadcrumb.Nav, Roo.bootstrap.Component,  {
30     
31     getAutoCreate : function()
32     {
33
34         var cfg = {
35             tag: 'nav',
36             cn : [
37                 {
38                     tag : 'ol',
39                     cls : 'breadcrumb'
40                 }
41             ]
42             
43         };
44           
45         return cfg;
46     },
47     
48     initEvents: function()
49     {
50         this.olEl = this.el.select('ol',true).first();    
51     },
52     getChildContainer : function()
53     {
54         return this.olEl;  
55     }
56     
57 });
58
59