8 * @extends Roo.bootstrap.Component
10 * @cfg {bool} is_optional is the argument optional
11 * @cfg {String} type argument type
12 * @cfg {String} name name of the parameter
13 * @cfg {String} desc short description
14 * @cfg {String} defaultvalue default value
18 * @param {Object} config The config object
21 Roo.doc.Param = function(config){
22 Roo.doc.Param.superclass.constructor.call(this, config);
25 Roo.extend(Roo.doc.Param, Roo.bootstrap.Component, {
33 getAutoCreate : function(){
35 //?? this is the synopsis type....
37 var desc = Roo.Markdown.toHtml(this.desc);
39 if (this.parent().stype == 'parameter') {
50 html : this.type + ' ' + this.name
59 if (this.parent().stype == 'return') {
76 // this is not very fancy...
81 this.is_optional ? '[' : '',
88 this.defaultvalue == '' ? '' : ' = ',
90 this.is_optional ? ']' : '',
91 ',' // not really.. but let's do it anyway...
100 getAutoCreateParamSection : function()
102 var desc = Roo.Markdown.toHtml(this.desc);
114 html : this.type + ' ' + this.name