allow string based values for comboboxarray
[roojs1] / Roo / doc / Entry.js
1 /*
2  * - LGPL
3  *
4  *  Documentation - designed to generate HTML+Docbook!?!
5  */
6 Roo.doc = Roo.doc || {};
7
8 /**
9  * @class Roo.doc.Entry
10  * @extends Roo.bootstrap.Component
11  * Entry Element class - describes a method etc...
12  * @cfg name {String} name of method
13  * @cfg purpose {String} short description of method.
14  * 
15  * @constructor
16  * Create a new E
17  * @param {Object} config The config object
18  */
19
20
21
22 Roo.doc.Entry  = function(config){
23     Roo.doc.Entry.superclass.constructor.call(this, config);
24     //this.el = Roo.get(document.body);
25     /*
26     var body = Roo.get(document.body);
27     body.attr({
28         leftmargin : 0,
29         marginwidth : 0,
30         topmargin : 0,
31         marginheight : 0,
32         offset : 0
33     });
34     
35      
36     // call onRender once... and block next call...?
37     this.onRender(body);
38     this.el = body;
39     //this.onRender = function() { };
40     */
41
42 };
43
44 //Roo.doc.Entry._calls = 0;
45
46 Roo.extend(Roo.doc.Entry, Roo.bootstrap.Component,  {
47     
48     
49     name : '',
50     purpose : '',
51     
52     getAutoCreate : function(){
53         
54         var cfg ={
55             cls : 'refentry',
56             cn : [
57                 {
58                     tag: 'h1',
59                     cls: 'refname',
60                     html : this.name
61                 },
62                 {
63                     cls: 'refnamediv',
64                     html : this.purpose
65                 }
66             ]
67         };
68         
69          
70         return cfg;
71     },
72     
73     addxtype :   function (tree, cntr)
74     {
75         return this.addxtypeChild(tree,cntr);
76     }
77     /*
78     onRender : function(ct, position)
79     {
80         
81         Roo.doc.Entry._calls++;
82         if (Roo.doc.Entry._calls > 1 || !ct) {
83             return;
84         }
85         
86     // call onRender once... and block next call...?
87     
88         Roo.bootstrap.Component.prototype.onRender.call(this, ct, position);
89     }
90     */
91    
92 });
93
94  
95
96