try and get ctrl-enter to add a clear all
[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 {string} title
11  * @cfg {string} name
12  *
13  * Represent's an category on the left menu.
14  * - phpdoc @category elements map the pages to the categories
15  *   this should be on the left side of the menu, when the
16  *   contents are loaded, then it can expand this out, and add links
17  *   for each of the methods.
18  *
19  * 
20  * 
21  * @constructor
22  * Create a new Navigation Category
23  * @param {Object} config The config object
24  */
25
26 Roo.doc.NavCategory = function(config){
27     Roo.doc.Para.superclass.constructor.call(this, config);
28     Roo.doc.NavCategory.registry[this.name] = this;
29 };
30 Roo.doc.NavCategory.registry = {};
31 Roo.extend(Roo.doc.NavCategory, Roo.bootstrap.Component,  {
32     
33     title : '',
34     name : '',
35     getAutoCreate : function(){
36         
37         //?? this is the synopsis type....
38         
39         // this is not very fancy...
40         
41         var cfg ={
42             
43             cn : [
44                 
45                 {
46                     tag : 'a',
47                     cls: 'roo-nav-category',
48                     href : '#' + this.name,
49                     html : this.title
50                 },
51                 {
52                     cls : 'container roo-child-ctr'
53                 }
54             ]
55         };
56
57         return cfg;
58     },
59     getChildContainer : function()
60     {
61         return this.el.select('.roo-child-ctr',true).first();
62     }
63     
64     
65    
66 });
67
68  
69
70