0f5dffe2761e626bf9de995e14a383bd9ee7eb98
[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.bootstrap.breadcrumb.Nav = function(config){
22     Roo.bootstrap.breadcrumb.Nav.superclass.constructor.call(this, config);
23     
24     
25 };
26
27 Roo.extend(Roo.bootstrap.breadcrumb.Nav, Roo.bootstrap.Component,  {
28     
29     getAutoCreate : function()
30     {
31
32         var cfg = {
33             tag: 'nav',
34             cn : [
35                 {
36                     tag : 'ol',
37                     cls : 'breadcrumb'
38                 }
39             ]
40             
41         };
42           
43         return cfg;
44     },
45     
46     initEvents: function()
47     {
48         this.olEl = this.el.select('ol',true).first();    
49     },
50     getChildContainer : function()
51     {
52         return this.olEl;  
53     }
54     
55 });
56
57