Roo/doc/Example.js
[roojs1] / Roo / doc / Example.js
1 /*
2  * - LGPL
3  *
4  */
5
6 /**
7  * @class Roo.doc.Example
8  * @extends Roo.bootstrap.Example
9  * Example Element class
10  * @cfg {String} lang (phpcode|programlisting) section type.
11  * 
12  * @constructor
13  * Create a new Synopsis
14  * @param {Object} config The config object
15  */
16
17 Roo.mailer.Section = function(config){
18     Roo.mailer.Section.superclass.constructor.call(this, config);
19 };
20
21 Roo.extend(Roo.mailer.Section, Roo.bootstrap.Component,  {
22     
23     
24     stype:   '',
25      
26     getAutoCreate : function(){
27         
28         var cfg ={
29             
30             cls : 'refsection',
31             // id... ?
32             cn : [
33                 {
34                     tag: 'h1',
35                     cls : 'title',
36                     html : this.stype.charAt(0).toUpperCase() + this.stype.slice(1) //ucfirst
37                 }
38             ]
39         }
40         if (this.stype == 'parameter') {
41             
42             // db package uses variable list here... - it results in dd/dl but the layout is messed up..
43             cfg.cn.push({
44                 tag: 'ul',
45                 cls: 'itemizedlist roo-params'
46             })
47         }
48         
49         
50         return cfg;
51     },
52   
53     
54     
55    
56 });
57
58  
59
60