Roo/doc/NavCategory.js
authorAlan Knowles <alan@roojs.com>
Fri, 14 Oct 2016 02:04:25 +0000 (10:04 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 14 Oct 2016 02:04:25 +0000 (10:04 +0800)
Roo/doc/NavCategory.js

index 7e31ac7..a31bfdb 100644 (file)
@@ -7,7 +7,8 @@
  * @class Roo.doc.NavCategory
  * @extends Roo.bootstrap.Component
  * Navigation Category class
- * @cfg {Object} settings
+ * @cfg {string} title
+ * @cfg {string} name
  *
  * Represent's an category on the left menu.
  * - phpdoc @category elements map the pages to the categories
@@ -28,7 +29,8 @@ Roo.doc.Para = function(config){
 
 Roo.extend(Roo.doc.Para, Roo.bootstrap.Component,  {
     
-    html : '',
+    title : '',
+    name : '',
     getAutoCreate : function(){
         
         //?? this is the synopsis type....
@@ -36,27 +38,21 @@ Roo.extend(Roo.doc.Para, Roo.bootstrap.Component,  {
         // this is not very fancy...
         
         var cfg ={
-            tag: 'p',
-            cls: 'para',
-            html : this.html
-        };
-         
-        if (this.parent().is_list) {
-            return {
-                tag: 'li',
-                cls : listitme,
-                cn : [ cfg ]
-            };
             
-        }
-       
+            cn : [
+                {
+                    tag : 'a',
+                    href : '#' + this.name,
+                    html : this.title
+                }
+            ]
+        };
+
         return cfg;
     }
      
     
     
-    
-    
    
 });