roojs-core.js
[roojs1] / Roo / doc / Param.js
index f91d05b..3e7b009 100644 (file)
@@ -34,6 +34,7 @@ Roo.extend(Roo.doc.Param, Roo.bootstrap.Component,  {
         
         //?? this is the synopsis type....
         
+        var desc = Roo.Markdown.toHtml(this.desc);
         
         if (this.parent().stype == 'parameter') {
             
@@ -48,7 +49,7 @@ Roo.extend(Roo.doc.Param, Roo.bootstrap.Component,  {
                                 tag: 'code',
                                 html : this.type + ' ' + this.name
                             },
-                            this.desc
+                            desc
                         ]
                     }
                 ]
@@ -64,7 +65,7 @@ Roo.extend(Roo.doc.Param, Roo.bootstrap.Component,  {
                             tag: 'code',
                             html : this.type
                         },
-                        this.desc
+                        desc
                     ]
                 };
                 
@@ -95,7 +96,32 @@ Roo.extend(Roo.doc.Param, Roo.bootstrap.Component,  {
         
        
         return cfg;
+    },
+    getAutoCreateParamSection : function()
+    {
+        var desc = Roo.Markdown.toHtml(this.desc);
+        
+      
+        return {
+               tag : 'li',
+               cn : [
+                   {
+                       tag : 'p',
+                       cls: 'para',
+                       cn : [
+                           {
+                               tag: 'code',
+                               html : this.type + ' ' + this.name
+                           },
+                           desc
+                       ]
+                   }
+               ]
+           };
+        
+        
     }
+