getAutoCreate : function(){
-
+ var syn = Roo.factory(this.parent().items[0]);
var cfg ={
cn : []
};
// might not have any..
- var params = this.parent().items[0].items;
+ var params = syn.items;
for (var i =0; i < params.length;i++) {
ul.cn.push( Roo.factory(params[i]).getAutoCreateParamSection() )
}
cfg.cn.push(ul);
}
-
+ if (this.stype == 'return' && syn.returndesc.length) {
+
+ cfg.cn.push({
+ tag: 'p',
+ cls : 'para',
+ cn : [
+
+ {
+ tag: 'code',
+ cls: 'parameter',
+ html : syn.returntype
+ },
+ syn.returndesc
+ ]
+
+ });
+ }
return cfg;
},
if (this.stype == 'parameter') {
return this.el.select('.roo-params',true).first();
}
+
return this.el;
}
'parameter' : 'Parameters',
'return' : 'Return Value',
'note' : 'Notes',
- 'example' : 'Examples'
+ 'example' : 'Examples',
+ 'throws' : 'Throws Exception'
}