Roo/doc/Section.js
[roojs1] / roojs-doc-debug.js
index 714718f..a44bfc6 100644 (file)
@@ -300,7 +300,29 @@ Roo.extend(Roo.doc.Param, Roo.bootstrap.Component,  {
         
        
         return cfg;
+    },
+    getAutoCreateParamSection : function()
+    {
+        return {
+               tag : 'li',
+               cn : [
+                   {
+                       tag : 'p',
+                       cls: 'para',
+                       cn : [
+                           {
+                               tag: 'code',
+                               html : this.type + ' ' + this.name
+                           },
+                           this.desc
+                       ]
+                   }
+               ]
+           };
+        
+        
     }
+    
      
     
     
@@ -356,10 +378,20 @@ Roo.extend(Roo.doc.Section, Roo.bootstrap.Component,  {
         if (this.stype == 'parameter') {
             
             // db package uses variable list here... - it results in dd/dl but the layout is messed up..
-            cfg.cn.push({
+            
+            var ul = {
                 tag: 'ul',
-                cls: 'itemizedlist roo-params'
-            });
+                cls: 'itemizedlist roo-params',
+                cn : []
+            };
+            // might not have any..
+            var params = this.parent.items[0].items;
+            for (var i =0; i < params.length;i++) {
+                ul.cn.push( params[i].getAutoCreateParamSection() )
+            }
+            
+            
+            cfg.cn.push(ul);
         }