7 * @class Roo.doc.Section
8 * @extends Roo.bootstrap.Component
10 * @cfg {String} stype (desc|parameter|return|note|example) section type.
13 * Create a new Synopsis
14 * @param {Object} config The config object
17 Roo.doc.Section = function(config){
18 Roo.doc.Section.superclass.constructor.call(this, config);
21 Roo.extend(Roo.doc.Section, Roo.bootstrap.Component, {
26 getAutoCreate : function(){
39 html : Roo.doc.Section.map[this.stype]
43 if (this.stype == 'parameter') {
45 // db package uses variable list here... - it results in dd/dl but the layout is messed up..
48 cls: 'itemizedlist roo-params'
55 getChildContainer : function(build_call)
58 if (this.stype == 'parameter') {
59 return this.el.select('.roo-params',true).first();
69 Roo.doc.Section.map = {
70 'desc' : 'Description',
71 'parameter' : 'Parameters',
72 'return' : 'Return Value',
74 'example' : 'Examples'