Roo/doc/Example.js
authorAlan Knowles <alan@roojs.com>
Thu, 8 Sep 2016 09:24:11 +0000 (17:24 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 8 Sep 2016 09:24:11 +0000 (17:24 +0800)
Roo/doc/Example.js

index a8c5229..23ccb5e 100644 (file)
@@ -23,30 +23,24 @@ Roo.mailer.Section = function(config){
 Roo.extend(Roo.mailer.Section, Roo.bootstrap.Component,  {
     
     
-    stype:   '',
-     
+    lang:   'php',
+    code : '',
+    
     getAutoCreate : function(){
         
+        // no colour highlighting in here....
+        
         var cfg ={
             
-            cls : 'refsection',
-            // id... ?
+            cls : this.lang,
+            
             cn : [
                 {
-                    tag: 'h1',
-                    cls : 'title',
-                    html : this.stype.charAt(0).toUpperCase() + this.stype.slice(1) //ucfirst
+                    tag: 'code',
+                    html :  String.format('{0}',this.code).replace(/\n/g, '<br/>')
                 }
             ]
         }
-        if (this.stype == 'parameter') {
-            
-            // db package uses variable list here... - it results in dd/dl but the layout is messed up..
-            cfg.cn.push({
-                tag: 'ul',
-                cls: 'itemizedlist roo-params'
-            })
-        }
         
        
         return cfg;