8 * @extends Roo.bootstrap.Component
10 * @cfg {bool} is_optional
11 * @cfg {String} type argument type
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....
38 if (this.parent().stype == 'parameter') {
49 html : this.type + ' ' + this.name
58 if (this.parent().stype == 'return') {
75 // this is not very fancy...
80 is_optional ? '[' : '',
84 this.defaultvalue == '' ? '' : ' = ',
86 ',' // not really.. but let's do it anyway...