sync
[roojs1] / Roo / bootstrap / breadcrumb / Nav.js
1 /*
2  * - LGPL
3  *
4  *  Breadcrumb Nav
5  * 
6  */
7
8
9 /**
10  * @class Roo.bootstrap.breadcrumb.Nav
11  * @extends Roo.bootstrap.Component
12  * Bootstrap Breadcrumb Nav Class
13  *  
14  * @children Roo.bootstrap.breadcrumb.Item
15  * 
16  * @constructor
17  * Create a new breadcrumb.Nav
18  * @param {Object} config The config object
19  */
20
21 Roo.namespace('Roo.bootstrap.breadcrumb');
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