Roo/doc/NavCategory.js
[roojs1] / Roo / doc / NavCategory.js
1 /*
2  * - LGPL
3  *
4  */
5
6 /**
7  * @class Roo.doc.NavCategory
8  * @extends Roo.bootstrap.Component
9  * Navigation Category class
10  * @cfg {Object} settings
11  *
12  * Represent's an category on the left menu.
13  * - phpdoc @category elements map the pages to the categories
14  *   this should be on the left side of the menu, when the
15  *   contents are loaded, then it can expand this out, and add links
16  *   for each of the methods.
17  *
18  * 
19  * 
20  * @constructor
21  * Create a new Paragraph
22  * @param {Object} config The config object
23  */
24
25 Roo.doc.Para = function(config){
26     Roo.doc.Para.superclass.constructor.call(this, config);
27 };
28
29 Roo.extend(Roo.doc.Para, Roo.bootstrap.Component,  {
30     
31     html : '',
32     getAutoCreate : function(){
33         
34         //?? this is the synopsis type....
35         
36         // this is not very fancy...
37         
38         var cfg ={
39             tag: 'p',
40             cls: 'para',
41             html : this.html
42         };
43          
44         if (this.parent().is_list) {
45             return {
46                 tag: 'li',
47                 cls : listitme,
48                 cn : [ cfg ]
49             };
50             
51         }
52         
53         return cfg;
54     }
55      
56     
57     
58     
59     
60    
61 });
62
63  
64
65