return cfg;
+ },
+ getAutoCreateParamSection : function()
+ {
+ return {
+ tag : 'li',
+ cn : [
+ {
+ tag : 'p',
+ cls: 'para',
+ cn : [
+ {
+ tag: 'code',
+ html : this.type + ' ' + this.name
+ },
+ this.desc
+ ]
+ }
+ ]
+ };
+
+
}
+
if (this.stype == 'parameter') {
// db package uses variable list here... - it results in dd/dl but the layout is messed up..
- cfg.cn.push({
+
+ var ul = {
tag: 'ul',
- cls: 'itemizedlist roo-params'
- });
+ cls: 'itemizedlist roo-params',
+ cn : []
+ };
+ // might not have any..
+ var params = this.parent.items[0].items;
+ for (var i =0; i < params.length;i++) {
+ ul.cn.push( params[i].getAutoCreateParamSection() )
+ }
+
+
+ cfg.cn.push(ul);
}